I have a timer alert:
private var cheat:Timer;
private function init():void {
cheat = new Timer(2000, 1);
cheat.addEventListener(TimerEvent.TIMER_COMPLETE, cheatProtection);
}
private function showAlert():void {
cheat.reset();
cheat.start();
}
private function alrt_close(evt:CloseEvent):void {
cheat.stop();
}
private function cheatProtection(evt:TimerEvent):void {
Alert.show("Text", "Label", Alert.OK, this, alrt_close);
}
So what I do is I call out showAlert(), but Alert (cheatProtection function) does not happen. What is wrong?
Thanks, Yan