Skip to content

Instantly share code, notes, and snippets.

@matthaliski
Last active October 5, 2015 08:28
Show Gist options
  • Save matthaliski/2779098 to your computer and use it in GitHub Desktop.
Save matthaliski/2779098 to your computer and use it in GitHub Desktop.
Listens for the stage
//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