Created
July 12, 2010 21:50
-
-
Save simonwex/473118 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Text2Screen.configure({ | |
messageHandler: function(message){ | |
//Do something with the message. | |
Text2Screen.readyForMore(); | |
}, | |
states: ['intro', 'call_to_action', 'display'], | |
transitions: { | |
enterIntro: function(){ | |
// run some animations | |
}, | |
enterCallToAction: function(){ | |
// run some animations for entering the call to action | |
}, | |
enterDisplay: function(from_state, to_state){ | |
// Start showing messages | |
Text2Screen.readyForMore(); | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment