This content has been marked as final. Show 4 replies
you can get the time using ActionScript, but as far as I know thats just local. So all those people with broken clocks will be very confused.
Instead, I'd use a php script to get the server time from whichever zone you're in. From there I'd just use AS to line up the correct times with zones. I think that'd be the easiest way to do it.
How would I get the value from the php to the flash movie with enough accuracy?
Will passing the time in as a parameter in the <object> tag be sufficient. I guess what I'm saying is, is there anything I can do to keep the time accurate with things which can cause delays such as page loading etc.
You load the php only one time, the seconds have the same duration for every location :)
indeed he spits the troof.
You can also run a check to see if the users clock year is less than 2000 before you run the script. Generally, when peoples' clocks are off, they're set at 1970 or something near there because their clock battery is dead. Anyway, so if you wanted to get around the php file, you could load the clocks only if the year looks reasonable, otherwise it could say "Your clock is broken!"