Results 1 to 2 of 2
  1.    #1  
    This is the code I have:

    Code:
    MenuAssistant.prototype.setup = function() {
    	/* this function is for setup tasks that have to happen when the scene is first created */
    		
    	/* use Mojo.View.render to render view templates and add them to the scene, if needed. */
    	
    	/* setup widgets here */
    	
    	/* add event handlers to listen to events from widgets */
    	
             this.controller.setupWidget("FM",
            this.attributes = {
                },
            this.model = {
                label : "FM",
                disabled: false
            });
             
            Mojo.Event.listen(this.controller.get('FM'), Mojo.Event.tap, this.switchToF.bind(this)) ;
    
    }
    
    MenuAssistant.prototype.activate = function(event) {
    	/* put in event handlers here that should only be in effect when this scene is active. For
    	   example, key handlers that are observing the document */
    }
    
    
    MenuAssistant.prototype.deactivate = function(event) {
    	/* remove any event handlers you added in activate and do any other cleanup that should happen before
    	   this scene is popped or another scene is pushed on top */
    }
    
    MenuAssistant.prototype.cleanup = function(event) {
    	/* this function should do any cleanup needed before the scene is destroyed as 
    	   a result of being popped off the scene stack */
    }
    
    MenuAssistant.prototype.switchToF = function(){
            Mojo.Controller.StageController.pushScene('f-view');
    }
    The button shows up, but does nothing when I hit it. The scene is properly set up and works when using pushScene from stage-assistant.jsjsjs.

    I have tried multiple different ways to use pushScene and the ID of the button.
  2. #2  
    Did you ever come up with a solution to this problem? I'm having the exact same issues except when i push my button, it locks up the application completely.

Posting Permissions