Skip navigation
jlmac01
Currently Being Moderated

Slideshow / Slider??

Jan 31, 2014 8:09 AM

I need to create a simple slider / slideshow which displays an image daily for seven days. The image would change every 24hrs for the seven days and loop continually. I thought this would be a simple enough project, but have been looking at slideshow programs, java, sliders etc...with no avail. I find that most transitions are limited to far less than 24hrs. I would appreciate any suggestions on the best program / route to take to use to accomplish this.

 

Thanks

-- Mac

 
Replies
  • Currently Being Moderated
    Jan 31, 2014 8:53 AM   in reply to jlmac01

    You want a transition that lasts 24 hours? 

     

    If you want to change an image once a day, try using the Date class to control when images are displayed... if it is daily then you could use the "day" (number 0 thru 6) to determine which image should be showing.  You could check it every minute (or longer) to see if it needs to be changed to the next day.  I don't know why you want any transition though... hardly seems worth it since it happens so seldom relative to the overall scheme of playing the file.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2014 6:25 PM   in reply to jlmac01

    You could use the Date class and check the day property of it and have that decide which image you show. 

     

    There are a variety of ways to make it work.  If you were to just plant the images on frames 1 thru 7 of the timeline (representing Sunday thru Saturday) you could simply use the following on frame 1...

     

    var today:Date = new Date();

     

    gotoAndStop(today.day+1);  // day values start at 0

     

     

    Just so you understand, the file is only running when someone is viewing it on a machine.  It is not constantly running such that you catch it where it is at that time.  If you expect that it could be displaying constantly, then you would want something in play that is contantly running that code so that it goes to the correct frame when the next day starts.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points