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); }