4 Replies Latest reply on Aug 17, 2008 5:45 PM by o2s

    flash slideshow autoplay problem

    o2s
      I created a slide show which needs to autoplay when it is loaded. Problem is, the play button is still active instead of the pause button. Any ideas would be appreciated. Thanks
        • 1. Re: flash slideshow autoplay problem
          Shandy Elliott Level 1
          Not enough information. Can you show an example? What did you use to make the slide show?
          • 2. Re: flash slideshow autoplay problem
            o2s Level 1
            Created in flash cs3 based on slideshow template.

            By altering the following line I was able to get the slideshow to autoplay.
            autoplayStatus = 1; in mc controller action script

            Unfortunately the default setting for the buttons: play and pause buttons are now incorrect. I cannot seem to locate the initial settings for these controls.
            • 3. Re: flash slideshow autoplay problem
              Shandy Elliott Level 1
              It's related to

              function hideControls () {
              nextBtn.gotoAndStop(2);
              prevBtn.gotoAndStop(2);
              }

              which is called upon by

              function autoplayInit () {
              startTime = getTimer();
              hideControls();
              updateStatus();
              }

              which I'm assuming is called upon by the beginning of the slide show (when it's initialized). All this code means little without seeing the time line. Since there are references to other frames in your code, I would need to see what's going on in those other frames that might be causing the problem.
              • 4. flash slideshow autoplay problem
                o2s Level 1
                I have finally resolved the issue with the following steps in the actions script. To see an example of this in action, you can visit http://www.alartworks.com/Gallery.html and click on any of the slide shows. The slide shows were based on the template slideshow in Flash CS3.

                ****At the bottom of mc, controller note the following:
                ****to make the slide show autoplay, change autoplayStatus = 1 from 0
                ****add autoplayInit()
                updateFrame();
                autoplayStatus = 1;
                //autoplayStatus = 0;
                autoplayInit(); //20080817 added

                ****for the button problem, since the pause must now precede the play button,
                click on mc, autoplay, go to the button layer, highlight the two btn frames, right click and chose Reverse Frames
                expand mc, autoplay and click on [btn, pause] and replace prevFrame(); with nextFrame(); see below

                on (release) {
                _parent.updateFrame();
                _parent.autoplayStatus = 0;
                _parent.indicator.gotoAndStop(1);
                nextFrame();
                //prevFrame();
                }

                click on [btn, play] and replace nextFrame(); with prevFrame(); see below
                on (release) {
                _parent.autoplayInit();
                _parent.autoplayStatus = 1;
                prevFrame();
                //nextFrame();
                }