Movie clip reverse loop

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 :slight_smile:

http://www.brianfitzgeralddesign.com/spinner2.html

This is the current “reverse” code:

 
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:

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