# Help! timeline events + reverse action!

**URL:** https://forum.kirupa.com/t/help-timeline-events-reverse-action/217112
**Category:** Uncategorized
**Created:** [February 23, 2007, 4:15am UTC](https://forum.kirupa.com/t/help-timeline-events-reverse-action/217112 "2007-02-23T04:15:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![browntown](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@browntown](https://forum.kirupa.com/u/browntown)
#### Post date: [February 23, 2007, 4:15am UTC](https://forum.kirupa.com/t/help-timeline-events-reverse-action/217112/1 "2007-02-23T04:15:12Z")

</div>

I am not sure if i am going at this the right way but here goes…i have a set of 5 images and im doing a simple tween animation where they scroll to the right and loop seamlessly. now i want the animation to go in reverse (left) if i mouse over a button. the animation and code work perfect but once it reaches the end of the timeline (in reverse) it stops and if i put a gotoAndPlay on that frame, flash freaks out and crashes. here is my code for the reverse button:

MC

onClipEvent (enterFrame) {  
if (gostraight) {  
nextFrame ();  
} else {  
prevFrame ();  
}  
}

BUTTON INSIDE MC

on (rollOver) {  
gostraight=true;  
}  
on (rollOut) {  
gostraight=false;  
}

now keep in mind the above code works fine i just want the animation to loop seamlessly in reverse like it does going forward. any help please, RIPPIN!!! :to:

oh i also want the the animation to start when the swf loads, right now it just seems to stay still up until i roll over the button. THANKS!
