Access a fucntion in another class

Former Member
Former Member
I'm trying to understand how I can access a function that's in another class in the same file.mc

for example this class:

class BaseInputDelegate extends Ui.BehaviorDelegate {
var dialog;

// Handle menu input
function onMenu() {
return pushDialog();
}

// Handle select button
function onSelect() {
return pushDialog();
}

function pushDialog() {
dialog = new Ui.Confirmation(dialogHeaderString);
Ui.pushView(dialog, new ConfirmationDialogDelegate(), Ui.SLIDE_IMMEDIATE);
return true;
}

function onNextPage() {
}
}


If I want to use "pushDialog()" from the above class how can I do this?

function myFunction(){

//Something happens here
pushDialog();

}


Thanks!