10 Replies Latest reply on Apr 17, 2012 8:42 AM by zerozone110

    Slideshow with buttons will not allow more than one cycle through the timeline.

    zerozone110

      Hi, I'm new to AS3. I have a slideshow with 4 slides. They are all in Scene 1 on the timeline. Each is on its own layer (and I have a fade effect between each of them on the timeline). I added labels to a separate layer in the timeline so that I could use forward and backward buttons to "speed up the process" in essence (instead of waiting for the slide to change). I can successfully use the buttons to cycle through the slideshow one time, but if I try to cycle through the slides more than once, I cannot get any further than the first slide.

       

      I put this code on the buttons in the first frame of each labeled section on my timeline:

       

      fwd_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_18);

       

      function fl_ClickToGoToAndPlayFromFrame_18(event:MouseEvent):void

      {

          gotoAndPlay("Shopper_2");

      }

       

       

      back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_19);

       

      function fl_ClickToGoToAndPlayFromFrame_19(event:MouseEvent):void

      {

          gotoAndPlay("Shopper_1");

      }

       

      Any ideas?

       

      Regards,

      zerozone