Play backwards with script, but no stop();

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 ?!! :wink:

ideas, thoughts???

thx,
m.

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