Results 1 to 3 of 3
  1.    #1  
    What could this possibly be?

    What could cause this to happen?

    Transition ended, twice????

    W T H!

    Upon further examination, it happens every time I enter the scene. =(
    Attached Images Attached Images
    Neo Enyo 2.0 Twitter App: NOW AVAILABLE | WON REVIEW
    clearview - clear card app for HP TOUCHPAD
    Wild'n Video Poker - AVAILABLE FOR ALL WEBOS DEVICES! | follow for latest updates - @fxspec06

  2. #2  
    Quote Originally Posted by fxspec06 View Post
    What could this possibly be?

    What could cause this to happen?

    Transition ended, twice????

    W T H!

    Upon further examination, it happens every time I enter the scene. =(
    Post some code or no one can help you.
  3.    #3  
    Sorry, I've been trying to narrow down the problem.

    I found a temporary workaround that gets the result I want, but I'd still rather find out why it's happening.

    In my menu scene:
    Code:
    .setup{
    this.resume = this.resumeGame.bind(this);
    }
    .activate{
    Mojo.Event.listen(this.controller.get("resume"), Mojo.Event.tap,
    	this.resume.bind(this));
    }
    .deactivate{
    Mojo.Event.stopListening(this.controller.get("resume"), Mojo.Event.tap,
    	this.resume.bind(this));
    }
    MenuAssistant.prototype.resumeGame = function(event) {
    	clearTimeout(tO1); clearTimeout(tO2); clearTimeout(tO3); clearTimeout(tO4); clearTimeout(tO5);
    	Mojo.Controller.stageController.swapScene("wildngame");
    };
    I don't think it's happening from the menu.

    Could it be two buttons bind to the same function, in my game?

    Code:
    .setup{
    	//SET UP THE BUTTONS
    	this.tapZone1 = this.tapZone1.bind(this);
    	this.tapZone2 = this.tapZone2.bind(this);
    	this.tapZone3 = this.tapZone3.bind(this);
    	this.tapZone4 = this.tapZone4.bind(this);
    	this.tapZone5 = this.tapZone5.bind(this);
    	this.secondDeal = this.secondDeal.bind(this);
    	this.secondDeal2 = this.secondDeal.bind(this);
    }
    
    WildngameAssistant.prototype.activate = function(event) { //on screen active
    
    	Mojo.Event.listen(this.controller.get("tapZone1"), Mojo.Event.tap,
    		this.tapZone1.bind(this));
    	Mojo.Event.listen(this.controller.get("tapZone2"), Mojo.Event.tap,
    		this.tapZone2.bind(this));
    	Mojo.Event.listen(this.controller.get("tapZone3"), Mojo.Event.tap,
    		this.tapZone3.bind(this));
    	Mojo.Event.listen(this.controller.get("tapZone4"), Mojo.Event.tap,
    		this.tapZone4.bind(this));
    	Mojo.Event.listen(this.controller.get("tapZone5"), Mojo.Event.tap,
    		this.tapZone5.bind(this));
    	//
    	Mojo.Event.listen(this.controller.get("deal"), Mojo.Event.tap,
    		this.secondDeal.bind(this));
    	Mojo.Event.listen(this.controller.get("deal-bar"), Mojo.Event.tap,
    		this.secondDeal2.bind(this));
    	//
    };
    WildngameAssistant.prototype.deactivate = function(event) { //on minimized card or screen off
    
    	Mojo.Event.stopListening(this.controller.get("tapZone1"), Mojo.Event.tap,
    		this.tapZone1.bind(this));
    	Mojo.Event.stopListening(this.controller.get("tapZone2"), Mojo.Event.tap,
    		this.tapZone2.bind(this));
    	Mojo.Event.stopListening(this.controller.get("tapZone3"), Mojo.Event.tap,
    		this.tapZone3.bind(this));
    	Mojo.Event.stopListening(this.controller.get("tapZone4"), Mojo.Event.tap,
    		this.tapZone4.bind(this));
    	Mojo.Event.stopListening(this.controller.get("tapZone5"), Mojo.Event.tap,
    		this.tapZone5.bind(this));
    	//
    	Mojo.Event.stopListening(this.controller.get("deal"), Mojo.Event.tap,
    		this.secondDeal.bind(this));
    	Mojo.Event.stopListening(this.controller.get("deal-bar"), Mojo.Event.tap,
    		this.secondDeal2.bind(this));
    	//
    };
    I honestly can't remember when it started doing this, but it became a problem recently when I added a feature.

    It may have been doing it for quite some time now.

    EDIT: Just for knowledge, the order of the methods goes: Setup, activate, deactivate, cleanup, rest of the app.....
    Last edited by fxspec06; 06/17/2011 at 01:26 PM.
    Neo Enyo 2.0 Twitter App: NOW AVAILABLE | WON REVIEW
    clearview - clear card app for HP TOUCHPAD
    Wild'n Video Poker - AVAILABLE FOR ALL WEBOS DEVICES! | follow for latest updates - @fxspec06

Posting Permissions