A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Acquiring Server Time

  1. #1
    Always Without Crutches!
    Join Date
    Feb 2005
    Location
    On The Interweb Thingy
    Posts
    44

    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.

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Posts
    11
    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

  3. #3
    Always Without Crutches!
    Join Date
    Feb 2005
    Location
    On The Interweb Thingy
    Posts
    44
    I would think so too......but just not sure how to!

  4. #4
    Junior Member
    Join Date
    Aug 2002
    Posts
    11
    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

  5. #5
    Always Without Crutches!
    Join Date
    Feb 2005
    Location
    On The Interweb Thingy
    Posts
    44
    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!

  6. #6
    Always Without Crutches!
    Join Date
    Feb 2005
    Location
    On The Interweb Thingy
    Posts
    44
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center