Results 1 to 3 of 3
  1.    #1  
    Hi all,

    In Scene1 there is a submenu and want to parse to Scene2 a specific text for each case.

    Here is the submenu code in Scene1:

    Scene1.prototype.handleCommand = function(event) {
    if(event.type == Mojo.Event.command) {
    switch(event.command)
    {
    case 'Submenu1':
    // here i want to set the specific text text1
    this.controller.stageController.pushScene("Scene2");
    break;

    case 'Submenu2':
    // here i want to set the specific text text2
    this.controller.stageController.pushScene("Scene2");
    break;
    }

    A detailed sample would be appreciated.

    Thanks
  2. #2  
    this.controller.stageController.pushScene("Scene2", "Text to pass", param2, param3, param4);

    function scene2assistant (p1, p2, p3, p4) {
    this.param1 = p1;
    this.param2 = p2;
    this.param3 = p3;
    this.param3 = p4;
    }
    Last edited by rboatright; 09/29/2009 at 04:17 PM.
  3.    #3  
    Thanks, it works fine

Posting Permissions