public var t:Timer;
public function init():void{
//This can be any function...
t = new Timer(3000); //3000 is the timer interval which corresponds to 3 secs
t.start();
t.addEventListener(TimerEvent.TIMER,targets);//So after 3 secs it goes to the targets function
}
public function targets(event:Event):void{
t.stop();//Stop the timer
Alert.show("Ta da I am here after 3 secs");
}