-
Acquiring Server Time
Hey Flashers!
I decided to knock out a timer counting down to the world cup on my website. The only problem is that it's referencing the time on the PC clock!
I've used a tutorial on kirupa.com to create the timer...is there anyone that knows how I can alter the script so that it references the server time instead!?
Cheers!
Here's a link to the tutorial for yas!
http://www.kirupa.com/developer/mx/countdown.htm
Last edited by BillyBobBongo; 04-13-2006 at 11:52 AM.
-
Could you perhaps create a php file on the server which when run gets the server time, and then use loadVariables or loadVars to retrieve it? Maybe using the time() function in php? Hope this helps, not too bright on flash and actionscript Im afraid, lol!
Dan
-
I would think so too......but just not sure how to!
-
http://www.thescripts.com/forum/thread1892.html
On that page there is a php script you could try and run, and then within your flash coding you should set up an empty movie window (lets say movie_clip) where you can use "loadVariables("your site", movie_clip)". As I said before, Im not too great with flash, but I managed to find that information just by searching on yahoo. Heres another "tutorial" of sorts I found:
http://www.kirupa.com/forum/showthread.php?t=32130
Hope that helps, there is probably an in-depth answer to your problem if you just look around on yahoo!
Dan
-
Cheers danives....I found something similar last night too! Will have to mash it all together and see if I can get it to work!
-
Eventually found the site of the guy who created the original tutorial and he'd add an extra bit to cover this issue...all is well!
Clicky!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|