# Movie Controls, rewind, fwd etc?

**URL:** <https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098>\
**Category:** flash\
**Created:** [August 6, 2004, 2:32pm UTC](https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098 "2004-08-06T14:32:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axios](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Axios](https://forum.kirupa.com/u/Axios)\
**Post date:** [August 6, 2004, 2:32pm UTC](https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098/1 "2004-08-06T14:32:29Z")

</div>

Hiya!

Im having problems making a movie controller. I want vcr style controls play, pause, stop, fast forward & rewind.

Ive done the 1st three no problem, but Im having problems with the rewind and forward buttons.

I have the flv in a separate mc called **WBR** and need the buttons **wind** & **fwd** , on mouse down to rewind the mc/make it go forward, speeding up the longer the buttons are held down.

Ive searched loads of tutorials & cant seem to get the code right!

Please help someone! 🙂

---

<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:** [August 6, 2004, 3:53pm UTC](https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098/2 "2004-08-06T15:53:55Z")

</div>

Its OK! Dont all rush at once! 😉 I figured it out myself - what a clever bunny I am! :bu:

Just in case anyone wonders what I did…

**STEP 1**

draw gfx & press f8 to make into a button

add the following code…

```auto
on (press) {
    pressing = true;
}
on (release, releaseOutside) {
  	pressing = false;
	this._parent.wbr.play();
	}

```

**STEP 2**

Press f8 and turn button into mc.

Make mc timeline 3 frames long, a keyframe at each end.

In keyframe 1 I put…

```auto
pressing = false;

```

In keyframe 3 I put…

```auto
if (pressing == true) {
            // add more prevFrame() commands
            // to rewind quicker
            this._parent.wbr.prevFrame();
            this._parent.wbr.prevFrame();
			this._parent.wbr.prevFrame();
			this._parent.wbr.prevFrame();
		             }
         gotoAndPlay (2);

```

And it works perfectly! For fast forward, place a new instance of the button on the stage and repeat step 2, exchanging prevFrame for nextFrame.

---

<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:** [August 6, 2004, 4:06pm UTC](https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098/3 "2004-08-06T16:06:52Z")

</div>

Looks like you were smarter than you thought. Good job 🙂

Thanks for leaving the code you used here, this way people searching for such a tool won’t see your topic on the search results and find only a question.

---

<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:** [August 9, 2004, 8:32am UTC](https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098/4 "2004-08-09T08:32:39Z")

</div>

Yeah, I hate that when you search for something, find a good thread & it doesnt say how they did it! 🙂

---

<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:** [August 16, 2004, 6:20pm UTC](https://forum.kirupa.com/t/movie-controls-rewind-fwd-etc/60098/5 "2004-08-16T18:20:10Z")

</div>

There is a lot of more info in Macromedia Live Docs, about controling video object in flash 😉
