FLEX
타이머 테스트
단순대왕
2008. 12. 24. 15:42
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="test()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private var hsSendTimer:Timer;
private function test():void {
hsSendTimer = new Timer(3000,0);
hsSendTimer.addEventListener(TimerEvent.TIMER, timerEvtHandler);
hsSendTimer.start();
}
private function timerEvtHandler(e:TimerEvent):void {
Alert.show("page reload service call()");
}
]]>
</mx:Script>
</mx:Application>