# Video walkthrough using mouse

**URL:** <https://forum.kirupa.com/t/video-walkthrough-using-mouse/63324>\
**Category:** Uncategorized\
**Created:** [September 5, 2004, 1:54pm UTC](https://forum.kirupa.com/t/video-walkthrough-using-mouse/63324 "2004-09-05T13:54:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asu80](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@asu80](https://forum.kirupa.com/u/asu80)\
**Post date:** [September 5, 2004, 1:54pm UTC](https://forum.kirupa.com/t/video-walkthrough-using-mouse/63324/1 "2004-09-05T13:54:13Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 6, 2004, 8:08am UTC](https://forum.kirupa.com/t/video-walkthrough-using-mouse/63324/2 "2004-09-06T08:08:08Z")

</div>

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
