Event Flex


  preinitialize="applicationPreInitHandler(event)" 
  initialize="applicationInitHandler(event)" 
  childAdd="applicationChildAddHandler(event)" 
  applicationComplete="applicationCompleteHandler(event)"
  layout="absolute">
  
  
    
      private var counter:Number = 0;
     [Bindable] private var eventLogArray:Array;
      private function applicationPreInitHandler(event:Event):void 
      {
        eventLogArray = new Array();
        var eventString:String = counter++ +" application ("+ event.target +"): "+ event.type;
        eventLogArray.push(eventString);
      }
      
      private function applicationInitHandler(event:Event):void {
        var eventString:String = counter++ +" application ("+ event.target +"): "+ event.type;
        eventLogArray.push(eventString);
      }
      private function applicationChildAddHandler(event:Event):void 
      {
        var eventString:String = counter++ +" application ("+ event.target +"): "+ event.type;
        eventLogArray.push(eventString);
      }
      private function applicationCompleteHandler(event:Event):void 
      {
        var eventString:String = counter++ +" application ("+ event.target +"): "+ event.type;
        eventLogArray.push(eventString);
        myList.dataProvider = eventLogArray;
      }
      private function eventHandler(event:Event):void 
      {
        var eventString:String = counter++ +" "+ event.target +" : "+ event.type;
        eventLogArray.push(eventString);
      }
    
  

  
      initialize="eventHandler(event)" creationComplete="eventHandler(event)" 
    childAdd="eventHandler(event)" add="eventHandler(event)" >
              preinitialize="eventHandler(event)" 
        initialize="eventHandler(event)" 
        creationComplete="eventHandler(event)" 
        add="eventHandler(event)" />