Saturday, March 19, 2011

Flashbuilder Timer Sample

import flash.utils.Timer;
import flash.events.TimerEvent;
private var t:Timer;
function init():void{
  t = new Timer(10000);
  t.addEventListener(TimerEvent.TIMER, functName);
  t.start();
}
function functName(e:TimerEvent):void {
    trace(" update ");
  t.start();
}