8 Replies Latest reply on Apr 7, 2010 12:27 AM by sherwin

    pausing-play movie with an option to totally stop the movie.

    sherwin

      Hi guys im using this code for my movie to pause for a certain time and then it play every after 5 seconds

       

      stop();

      var nInterval = setInterval(Play, 5000);

      function Play() {
          clearInterval(nInterval);
          gotoAndPlay(_currentframe+1);
      }

       

      i have 5 frames, each frames has the this actionscript, each frame has different pictures

       

      now i want to have a button to totally stop the movie depends on what frame is showing, how should i do that?

       

      thanks in advance!!