# prevFrame to move back more than just 1

**URL:** <https://forum.kirupa.com/t/prevframe-to-move-back-more-than-just-1/155685>\
**Category:** flash\
**Created:** [July 19, 2005, 4:41pm UTC](https://forum.kirupa.com/t/prevframe-to-move-back-more-than-just-1/155685 "2005-07-19T16:41:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developmental](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@developmental](https://forum.kirupa.com/u/developmental)\
**Post date:** [July 19, 2005, 4:41pm UTC](https://forum.kirupa.com/t/prevframe-to-move-back-more-than-just-1/155685/1 "2005-07-19T16:41:07Z")

</div>

```auto

btn.onRelease = function() {
	movie = "content";
	load();
};
function load() {
	if (this.mask._currentframe == 20) {
		//code to make this.mask run in reverse to frame 1
	}
	if (this.mask._currentframe == 1) {
		this.attachMovie(movie, movie, 0);
	}
}

```

I tried it this way

```auto

 btn.onRelease = function() {
 	movie = "content";
 	load();
 };
 function load() {
 	if (this.mask._currentframe == 20) {
 		this.mask.onEnterFrame = function() {
 			this.mask.prevFrame();
 }
 	}
 	if (this.mask._currentframe == 1) {
 		this.attachMovie(movie, movie, 0);
 	}
 }

```

but it didn’t seem to do the trick, any help is great appreciated!

D
