Results 1 to 3 of 3
  1.    #1  
    Code:
    function StageAssistant () {
    }
    
    StageAssistant.prototype.setup = function() {
    
    // Setup Application Menu with an About entry
    //
    AddSubMenuAttr = {omitDefaultItems: true};
    AddSubMenuModel = {
    visible: true,
    items: [
    {label: "About Tumblpop", command: 'do-aboutAddSub'},
    Mojo.Menu.editItem,
    Mojo.Menu.prefsItem,
    {label: "Help...", command: 'do-helpAddSub', shortcut: 'h'}
    ]
    };
    this.controller.pushScene('first');
    };
    
    // handleCommand - Setup handlers for menus:
    //
    StageAssistant.prototype.handleCommand = function(event) {
    // var currentScene = this.controller.activeScene();
    if(event.type == Mojo.Event.command) {
    switch(event.command) {
    case 'do-aboutAddSub':
    this.controller.pushScene("About");
    break;
    
    case 'do-helpAddSub':
    this.controller.pushAppSupportInfoScene();
    break; 
    
    }
    }
    };
    I also tried this.controller.stageController.pushAppSupportInfoScene(); and that just freezes the entire application.
  2. #2  
    Do you have the supporting elements in your "appinfo.json"? There will need to be a corresponding "support" element for it to work properly. Check out: Appinfo.json - WebOS101
  3.    #3  
    Yes I do, I'll definatley use that link though, thanks!

Posting Permissions