3 Replies Latest reply on Oct 10, 2010 5:15 AM by Ned Murphy

    Pause btn goes back to beginning of movie

    a_bosiger

      Hello,

       

      Actionscript 2.0

       

      I have a play and stop button in a movie clip. The actual button works great but does not pause the movie and then resume playback where it left off. Instead the movie goes back to the very beginning and stop/starts there. I need the button to resume playback where the movie was stopped—like a pause and resume button. The videos load exernally through an FLVPlayback component (myVideo).

       

      The code is on the main time line in Actions layer.

      Here's the code for the button:

       

      _root.StopNGo_mc.onRelease = function() {
          if (_root.StopNGo_mc._currentFrame == 1) {
              _root.StopNGo_mc.gotoAndStop(2);
              _root.myVideo.stop();
          } else {
              _root.StopNGo_mc.gotoAndStop(1);
              _root.myVideo.play();
          }
      }

       

       

      Once again,

      Many thanks,

      Andrea