Mega Code Archive
Preinitialize, initialize, creationComplete events for Application
private var counter:Number = 0;
private var initProcessString:String = "";
private function applicationPreInitHandler(event:Event):void
{
initProcessString += counter++ +" Application ("+ event.target +"): "+ event.type;
}
private function applicationInitHandler(event:Event):void
{
initProcessString += counter++ +" Application ("+ event.target +"): "+ event.type;
}
private function applicationChildAddHandler(event:Event):void
{
initProcessString += counter++ +" Application ("+ event.target +"): "+ event.type;
}
private function applicationCompleteHandler(event:Event):void
{
initProcessString += counter++ +" Application ("+ event.target +"): "+ event.type;
}
private function eventHandler(event:Event):void
{
var eventString:String = counter++ +" "+ event.target +" : "+ event.type;
if(myTA) {
myTA.text = initProcessString += eventString +"\n";
} else {
initProcessString += eventString +"\n";
}
}
private function textCreationCompleteHandler(event:Event):void
{
myTA.text = initProcessString;
}