header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
meoden8x
Points:110
Posts:0

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.



1
Justin
Points: 600
Posts:0
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.

2
Friend
Points: 710
Posts:0
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

3
Veer
Points: 480
Posts:0
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 3+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions