1 Reply Latest reply on Oct 13, 2008 5:14 AM by Devendran

    Help needed!! Slideshow problems.

    ThePath
      OK I have mad a simple slide show in flash and the actionscipt is equally as simple as I am a complete noob and dont know what Im doing.

      The problem is that my slide show plays once, then loops back to the beginning (all good so far) then it freezes at the end of slide2. Whats going on? Why does it work the first time and then stop on the second run? Can anyone help please?

      Here is the code I am using:

      To move to the next slide I have:

      stop();
      function goNext(){
      currentSlide.gotoNextSlide();
      clearInterval(timer);
      }
      var timer = setInterval(goNext, 500);

      To move to the 1st lside I have:

      stop();
      function goNext(){
      _root.presentation.gotoSlide(_root.presentation.slide1);
      clearInterval(timer);
      }
      var timer = setInterval(goNext, 500);

      Thanks
        • 1. Re: Help needed!! Slideshow problems.
          Devendran Level 1
          Try this.
          Put the clearinterval at the starting of the function.


          stop();
          function goNext(){
          clearInterval(timer);
          currentSlide.gotoNextSlide();

          }
          var timer = setInterval(goNext, 500);

          //Second
          stop();
          function goNext(){
          clearInterval(timer);
          _root.presentation.gotoSlide(_root.presentation.slide1);
          }
          var timer = setInterval(goNext, 500);