preinitialize="applicationPreInitHandler(event)"
initialize="applicationInitHandler(event)"
childAdd="applicationChildAddHandler(event)"
applicationComplete="applicationCompleteHandler(event)" >
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;
}
preinitialize="eventHandler(event)"
initialize="eventHandler(event)"
creationComplete="eventHandler(event)"
add="eventHandler(event)"
added="eventHandler(event)">
label="Button 1"
preinitialize="eventHandler(event)"
initialize="eventHandler(event)"
creationComplete="eventHandler(event)"
add="eventHandler(event)" />
verticalAlign="middle" horizontalAlign="center">
label="Button2"
preinitialize="eventHandler(event)"
initialize="eventHandler(event)"
creationComplete="eventHandler(event)"
add="eventHandler(event)" />