# Play backwards with script, but no stop();

**URL:** https://forum.kirupa.com/t/play-backwards-with-script-but-no-stop/93240
**Category:** Uncategorized
**Created:** [October 28, 2003, 2:32am UTC](https://forum.kirupa.com/t/play-backwards-with-script-but-no-stop/93240 "2003-10-28T02:32:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imported\_mucho](https://avatars.discourse-cdn.com/v4/letter/i/3da27b/32.png) [@imported\_mucho](https://forum.kirupa.com/u/imported_mucho)
#### Post date: [October 28, 2003, 2:32am UTC](https://forum.kirupa.com/t/play-backwards-with-script-but-no-stop/93240/1 "2003-10-28T02:32:03Z")

</div>

Helloooo everyone,

so I’m using this script to play a menu backwards and it works, but when clicking the button to do so…it plays the whole darn thing back and does not stop at my stop actions…do I have to write the action like this now? ;()pots ?!! 😉

ideas, thoughts???

thx,  
m.

–

onClipEvent (enterFrame) {  
if (\_root.direction == “forwards”) {  
this.gotoAndStop(this.\_currentframe+1);  
}  
if (\_root.direction == “backwards”) {  
this.gotoAndStop(this.\_currentframe-1);  
}  
}
