# Rewind function or action

**URL:** https://forum.kirupa.com/t/rewind-function-or-action/155591
**Category:** flash
**Created:** [July 19, 2005, 12:45am UTC](https://forum.kirupa.com/t/rewind-function-or-action/155591 "2005-07-19T00:45:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![z3r0](https://avatars.discourse-cdn.com/v4/letter/z/cdc98d/32.png) [@z3r0](https://forum.kirupa.com/u/z3r0)
#### Post date: [July 19, 2005, 12:45am UTC](https://forum.kirupa.com/t/rewind-function-or-action/155591/1 "2005-07-19T00:45:00Z")

</div>

Hello

I did a simple controller to tell a movie loaded stop, play, rewind 1 frame, but I need another button to rewind the movie as long as you press the button.  
The loaded movie on a movie clip is just a frame by frame sequence.

Tried -unsuccessfully- this:

Action on button:

```auto
 
on (press){
gotoAndStop(5);
}

on (release){
clearInterval(IDname);
gotoAndStop(5);
	}

Action on frame 5:

function rewind () {
	_root.clip.holder.prevFrame();
	if (_root.clip.holder._currentframe == 1) {
//turns on another button there, not necessary by now		
slw.enabled = true;
	}

var IDname;
IDname = setInterval(rewind , 72);
stop();
}

```

I’d like that when you press the button the movie loaded plays from actual frame to it’s begining as long as you keep the button pressed.  
I’m pretty sure there is a much effective way to do that since I stink in as!  
Any help?
