I want to change the text in the Alert on timer tick, but nothing changes, see example below:
private var alert:Alert;
private var timer:Timer = new Timer(1000, 0);
private function init(){
timer.addEventListener(TimerEvent.TIMER, onTimerTick);
timer.start();
alert = Alert.show("Logout in "+ 60 +" seconds","",3);
}
private function onTimerTick(event:TimerEvent):void{
alert.text = "Logout in "+(60-timer.currentCount)+" seconds";
}
P.S. Title is overridden by this way.
Thanks in advance for any help
Do some thing like this will help.