Timer event : Timer « Event « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Event » TimerScreenshots 
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
ww___w__.j___a_va_2__s.__c___o__m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.