# Scrubbing a Movie

**URL:** <https://forum.kirupa.com/t/scrubbing-a-movie/89011>\
**Category:** flash\
**Created:** [May 4, 2005, 10:08am UTC](https://forum.kirupa.com/t/scrubbing-a-movie/89011 "2005-05-04T10:08:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RopeGun](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RopeGun](https://forum.kirupa.com/u/RopeGun)\
**Post date:** [May 4, 2005, 10:08am UTC](https://forum.kirupa.com/t/scrubbing-a-movie/89011/1 "2005-05-04T10:08:31Z")

</div>

I was certain that this type of problem would have been previously discussed here or in a tutorial. I have looked quite a bit and could not find anything that puts all the pieces of my puzzle together.

Here it is:

I have an Embedded Video in a container movieClip.

As the movie is playing (looping), I would like the movie to stop at the current frame whenever I click and hold the mouse down within the area of the container. Furthermore, I would like to be able to scrub the movie backward if I drag my mouse to the left within the container and as I reach the left end of the container, the movie is at the first frame. And similarly, I would like to scrub forward if I drag to the right within the container and as I reach the right end of the container, the movie is at the last frame. On top of this daunting task, I would like the movie to resume playing from wherever I have released the mouse.

Here is a file that I have started and I am pretty much at a loss as to where to go now. I know it has something to do with where the mouse is relative to either side of the container, but…how does one get it to work?

[http://www.culshaw.info/junk\_drawer/scrub.zip](http://www.culshaw.info/junk_drawer/scrub.zip)

Basically, I would like to emulate the functionality of the QuickTime Player - the one where you can grab the slider and drag it left or right to scrub in either direction and then upon release of the slider it resumes playing.

I do not understand the media components in MX 2004, maybe this type of thing is “easy” to program in to one of those modules?

Please help.

-john
