This is helpful but problem is how do i know when that 3 second will finish.
private var myTimer1:Timer;
[Bindable] private var num1:uint = 0;
private function init():void{
myTimer1 = new Timer(3000, 1);
myTimer1.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler1);
myTimer1.start();
}
public function timerHandler1(event:TimerEvent):void {
num1++;
}
I want to insert a function when that 3 second finish. The function name is check(). Where should i put this check function.
My aim is when that 3 second finish i want to call check() function.
--AMit
If this post answered your question or helped, please mark it as such. 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init();">
<mx:Script>
<![CDATA[
private var myTimer1:Timer;
private function init():void{
myTimer1 = new Timer(3000, 1);
myTimer1.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler1);
myTimer1.start();
}
public function timerHandler1(event:TimerEvent):void {
check();
}
public function check():void {
lbl_1.text = "check() function called.";
}
]]>
</mx:Script>
<mx:Label id="lbl_1" fontSize="40" text="waiting"/>
</mx:Application>