Skip to main content
Venian
Inspiring
April 21, 2009
Answered

How to use a time server to construct a clock in flash?

  • April 21, 2009
  • 1 reply
  • 556 views

Hi.

I'm seeing lots of cool clocks made in flash, but they load the time based on your machine's date and time. I want to construct a clock which takes the time from an official time server so it will always be up to date.

The problem is i don't know how to do this and i didn't find anything regarding this matter.

Does anyone have any clues?

Thanks a lot.

This topic has been closed for replies.
Correct answer kglad

you'll need to find an official clock that has an rss feed, create a server-side script to load that feed and forward it to your swf after your swf calls the script.  you can then parse the feed in your swf and use it to display the clock you created.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
April 21, 2009

you'll need to find an official clock that has an rss feed, create a server-side script to load that feed and forward it to your swf after your swf calls the script.  you can then parse the feed in your swf and use it to display the clock you created.

Venian
VenianAuthor
Inspiring
April 22, 2009

Thank you. As always you point me in the right direction.