Code :
this.systemManager.addEventListener(FlexEvent.IDLE, userIdle);
private function userIdle(e:FlexEvent):void {If the event trigger means, the control pass to the method.
if(e.currentTarget.mx_internal::idleCounter == 3000){
//do something!
}
}
In this method, we check the condition for that the system is idle for 5mins.
(Five minutes is equal to 300000 milliseconds… divided by 100 ticks and
the number we need to check against is 3000).
No comments:
Post a Comment