A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: system clock

  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    128
    How do I use action script to simply change a photo once every hour according to the system clock?


  2. #2
    ------------ gazday's Avatar
    Join Date
    Aug 2000
    Location
    Location: Location
    Posts
    167
    use the get hour command as you would to construct a simple clock.

    Create a movieclip with a different image in each frame and a stop command in the first.

    Make a variable "hour" and set hour = getHour

    Then use if, else if to change the image

    if hour=1 _root.photoMC.gotoandStop(1)
    else if hour=2 _root.photoMC.gotoandStop(2)
    etc.

    Apologies for the lazy syntax but I hope you get the idea

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