4 Replies Latest reply on Feb 22, 2007 10:16 AM by restrepoblessing

    Daily display images

      How do I write a script to do a daily display images on Flash? For instance, I want to display a.jpg on Monday, b.jpg on Tuesday, and so on...
        • 1. Re: Daily display images
          ggshow Level 2
          //lets say you have 7 pictures, for each day in a week,
          //the filename is pic1.jpg, pic2.jpg, pic3.jpg, pic4.jpg, pic5.jpg, pic6.jpg, pic7.jpg

          var date:Date = new Date();
          var filename:String= "pic"+date.getDay()+".jpg"
          _root.createEmptyMovieClip("holder_mc", 1);

          good luck
          • 2. Re: Daily display images
            TKLau Level 1
            It works briliantly. Thank you very much for solving my problems.

            • 3. Re: Daily display images
              ggshow Level 2
              welc me
              • 4. Re: Daily display images
                I'm trying to do the same thing but istead of daily I would like to display a different image every week, for instance
                on sunday February 25th 2007 I want to display image 1.jpg for sunday March 4th, 2007 I want to display 2.jpg and so on every sunday of the month (is for my church), below you'll see how I have setup the flash file:

                I have a bunch of images (symbols) slideshow and each symbol shows a different images, amoungst those symbols, one of them has nothing in, which is where I want the jpg to appear.

                Then I have a clock script I got from the internet that displays the date on a dynamic fied as follows (Thursday 22 February 2007)

                So I NEED DESPERATE HELP on how to create a code that would get the images loaded in - loadMovie(" http://www.gcntv.org/imagestest/1.jpg", mainMov.loadMov) but only if it matches the date on the dynamic text field.

                Any help is greatly apppreciated.