# Dragging on a MC to scrub (FF & Rew)

**URL:** https://forum.kirupa.com/t/dragging-on-a-mc-to-scrub-ff-rew/160978
**Category:** flash
**Created:** [August 31, 2005, 2:25am UTC](https://forum.kirupa.com/t/dragging-on-a-mc-to-scrub-ff-rew/160978 "2005-08-31T02:25:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![enforcer73](https://avatars.discourse-cdn.com/v4/letter/e/ecd19e/32.png) [@enforcer73](https://forum.kirupa.com/u/enforcer73)
#### Post date: [August 31, 2005, 2:25am UTC](https://forum.kirupa.com/t/dragging-on-a-mc-to-scrub-ff-rew/160978/1 "2005-08-31T02:25:48Z")

</div>

Hi guys,

I have an FLV emdedded inside a movie clip called “movie1”.  
I am trying to add some controls to it, but without the use of buttons. I want the movie clip itself to be the ‘buttons’. I have been able to get it to play/pause through the use of this code, on “movie1”:

```auto
onClipEvent (load) {
	this.movie1 = true;
}
on (release) {
	this.movie1 ? this.stop() : this.play();
	this.movie1 = !this.movie1;
}

```

It works fine and I am most happy with the assistance I found on this forum to do this. I however want to add an extra level of control.  
I want the movie to scrub or rewind, frame by frame when you click and drag on the movie to the left. (Note: movie clip stays still, you are just dragging ON it, to the left.) I also want the opposite to happen. When you drag to the right, it scrubs forward, frame by frame.

I have been able to get it to do this through the use of a key press action:

```auto
on (keyPress "<Left>") {
	this.prevFrame();
}
on (keyPress "<Right>") {
	this.nextFrame();
}

```

Works a charm, but like I said I want to be able to control this, not through keyPress, but mouse dragging left and right, on the movieclip itself, “movie1”.

Any help would be totally cool!

Cheers,

Enforcer73
