# Play a movie clip backwards

**URL:** https://forum.kirupa.com/t/play-a-movie-clip-backwards/46977
**Category:** flash
**Created:** [March 29, 2004, 11:59pm UTC](https://forum.kirupa.com/t/play-a-movie-clip-backwards/46977 "2004-03-29T23:59:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jong](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jong](https://forum.kirupa.com/u/Jong)
#### Post date: [March 29, 2004, 11:59pm UTC](https://forum.kirupa.com/t/play-a-movie-clip-backwards/46977/1 "2004-03-29T23:59:20Z")

</div>

I’m trying to play a movie clip backwards on rollout, but can’t get it to work.

I have a main movie clip, which contains a button and a movie clip.  
Since the area of main movie clip is larger than the button hit area, I’m trying to create the reverse effect from the button.

[AS]on (rollOver) {  
forside\_movie.gotoAndPlay (1); // play movie forward  
}

on (rollOut) {  
forside\_movie.prevFrame (\_currentframe - 1); // play movie backwards  
}[/AS]  
Obviously the rollout effect doesn’t work. I have also tried with…

[AS]forside\_movie.gotoAndStop (\_currentframe - 1);[/AS]  
and…

[AS]for (i = 10; i \> 0; i–) {  
forside\_movie.gotoAndStop (i);  
}[/AS]  
and…

[AS]forside\_movie.prevFrame();[/AS]  
and on the forside\_movie to place…

[AS]onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse , \_root.\_ymouse , false)) {  
nextFrame();  
}

else {  
prevFrame();  
}  
}[/AS]  
but same result everytime - no action :puzzle: Some help would be much appreciated 🙂
