7/28/2010 12:13:11 AM
Title:
How to listen client time change event instantly?
I need detect user's machine time change instantly by ActionScript (the home page is changed dependent on user' machine time instantly).
Please help me.
7/28/2010 12:27:22 AM
flash does not register with system events , So you have to create a timer and check the time after some regular interval to detect any change.
7/28/2010 5:41:38 AM
see this link to use data object to get the local time stamp of system in actionscript.
You can store the old time and compare it with the new time to see the change .
http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_3.html
7/28/2010 6:14:31 AM
Hello,
If you want some task on particular time interval you can try "setInterval"
Examlpe... it will alert after every 1 second.
setInterval( function ():void { Alert.show('Do The Task') },1000 );
may helps you.
Regards,
Virat Patel