matthaliski
5/24/2012 - 2:32 AM

Listens for the stage

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