Quote:
Originally Posted by webostech
Hi,
I have modified my stageAssistant to
Code:
function StageAssistant () {savemenu = {}; }
and my switch menu to
Code:
switch(event.command)
{
case 'save-items':
savemenu.text1 = $('textField1').value;
savemenu.text2 = $('textField2').value;
savemenu.text3 = $('textField3').value;
savemenu.text4 = $('textField4').value;
Mojo.Controller.stageController.pushScene("saveitems", savemenu.text1, savemenu.text2, savemenu.text3, savemenu.text4 );
break;
}
when i call the argument it gives me undefined.
Kindly suggest
|
Sorry for the LATE reply, happened to come across this again. I saved my namespace in the
setup function of the stage controller in order to make it global. I did the same thing in an app controller as well.