Video walkthrough using mouse

hi all,

i’ve have a problem. i want to create a video walkthrough using a mouse. what i mean by that is that the user can navigate the video forward and backward using mouse. if the user forward (drag+up the mouse), the video will play forward and stop after user drag off the mouse. (the play frame in the time line depend on the degree of the drag+up mouse). same with the backward.

i hope u all can help me
thanks… peace…

what i’ve done so far

i’ve create 2 movie clip symbol.

  1. movie (instance name=movieclip) to store the video
  2. start (instance name=playbutton) to play the video (testing purpose)

explanation:

  1. videoclip.stop();
  • to stop the video clip. otherwise it will play as soon as it appears on the movie timeline
  1. this.onEnterframe=function()
    {
    if(videoclip._currentframe==videoclip._totalframes){
    videoclip.stop();
    }
    }
  • to stop the video clip from looping after the video finish. after current frames equal to total frames of the video clip, the movie clip will stop
  1. playbutton.onRelease=function(){

videoclip.play();
};

  • to play the movie clip after i click the play button

my problem:

  • i don’t know how to sign the mouse so that if the user drag upwards (y axis), the video will play forward and stop after i release the left mouse button. if the user drag backward, the video will play backward and stop after i release the left mouse button.
  • i think, better use the gotoAndStop(frame). how are we gonna calculated frame?. my theory is by using; if the mouse is drag upward, we can plus 10 frame to currentframe and vice versa.

that’s all