Timer event : Timer « Event « Flex






Timer event

           

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="initApp();">
  <mx:Script>

      import mx.controls.Alert;
      import flash.external.ExternalInterface;
      private function initApp():void{
            var readyTimer:Timer = new Timer(100);
            readyTimer.addEventListener(TimerEvent.TIMER, jsNotReady);
            readyTimer.start();
      }
      private function jsNotReady(event:TimerEvent):void {
          Timer(event.target).stop();
      }
    
  </mx:Script>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use Timer event to track flash total memoryUse Timer event to track flash total memory
2.Update bindable variable in a timer eventUpdate bindable variable in a timer event