0 Replies Latest reply on May 19, 2010 11:09 AM by heazle

    rewind video like VCR rewind button AS2.0

    heazle

      I have an .flv video that I embedded into my flash file that I want to play both forward and backward at the same frame rate. I got it to work accept when I hit the button "backButton" it plays backwards really slow and jittery, is there anything I can do to fix this with the actionscrip I already have, or is there a better way to get this to work?

      here is the actionscript that I am using.

       

      myMovieClip.stop( );

      myMovieClip.playback = "backwards"

       

      myMovieClip.onEnterFrame = function( ) {

               if (this.playback == "backwards") {

                this.prevFrame( );

                } else if (this._currentframe == this._totalframes || this.playback == "stop")

                this.stop( );

      }

      }

       

      forwardButton.onRelease = function( ) {

                myMovieClip.playback = "forwards";

                myMovieClip.play( );

      }

       

      backButton.onRelease = function() {

                if (myMovieClip._currentframe == myMovieClip._totalframes) {

                myMovieClip.prevFrame( );

      }

                myMovieClip.playback = "backwards";

                myMovieClip.play( );

      }