Monday, December 29, 2008
Monitoring System Idle State in AIR
Please look this code:
NativeApplication.nativeApplication.idleThreshold = 120;
NativeApplication.nativeApplication.addEventListener(Event.USER_IDLE, idlefunction(event:Event) {trace("Idle");} );
NativeApplication.nativeApplication.addEventListener(Event.USER_PRESENT, presentfunction(event:Event) { trace("Present");} );
Note:
Using the idleThreshold property, the specified interval( in seconds) are set, The system is reaching the idle state, upto specified seconds, Event.USER_IDLE is fired and any interrupt to the system (keyboard, mouse or input devices) is done, Event.USER_PRESENT is fired. Its very helpful to screen saver samples.
Subscribe to:
Post Comments (Atom)
1 comment:
...av.色情影片.sex.AV女優.A片.av女優.色情影片.AV女優.情色電影.情色.成人影片.成人網站.A片下載.A片.成人電影.A片下載.色情影片.AV女優.A片.成人影片.av女優.A片.情色電影.AV.A片.A片.色情影片.成人影片..AV片.A片.成人電影.A片.成人影片.成人網站.成人網站.色情影片.情色.成人影片.色情影片.情色.成人電影.a片.色情.色情影片.色情影片.情色.成人影片.色情影片.成人網站.情色電影.AV片.情色.A片下載.色情.AV女優.a片.成人電影..成人電影.成人影片.色情影片.成人影片....
Post a Comment