# Movie clip reverse loop

**URL:** https://forum.kirupa.com/t/movie-clip-reverse-loop/192460
**Category:** Uncategorized
**Created:** [June 28, 2006, 6:56pm UTC](https://forum.kirupa.com/t/movie-clip-reverse-loop/192460 "2006-06-28T18:56:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![AgentFitz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AgentFitz](https://forum.kirupa.com/u/AgentFitz)
#### Post date: [June 28, 2006, 6:56pm UTC](https://forum.kirupa.com/t/movie-clip-reverse-loop/192460/1 "2006-06-28T18:56:18Z")

</div>

hey — what I’m trying to do is have a mc play continuously either forward or backward depending on whether you roll over the “forward” or “reverse” buttons…

I’ve almost got it there, except I can’t figure out how to get the reverse to loop after it gets back to the beginning of the animation. any help would be greatly appreciated 🙂

[http://www.brianfitzgeralddesign.com/spinner2.html](http://www.brianfitzgeralddesign.com/spinner2.html)

This is the current “reverse” code:

```auto
 
this.onEnterFrame = function(){ 
 if(rewind == true){ 
 _root.spinner_mc.prevFrame(); 
 }
} 
this.onRollOver = function(){ 
 rewind = true;
}
this.onRollOut = function(){ 
 rewind=false;
}

```

This is the current “forward” code:

```auto
 
this.onRollOver = function(){ 
_root.spinner_mc.play(); 
} 
this.onRollOut = function(){ 
_root.spinner_mc.stop(); 
} 
 

```
