Last active
October 5, 2015 08:28
-
-
Save matthaliski/2779098 to your computer and use it in GitHub Desktop.
Listens for the stage
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
//It's a good idea to listen for the stage before you attempt to access it | |
if (stage) { | |
init(); | |
} else { | |
addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment