Hi,

I have this script for a collapsable menu:

menu.kinase.onPress=function(){
menu.gotoAndPlay("play");
}
menu.channel.onPress=function(){
menu.onEnterFrame=function(){
this.prevFrame();
if(this._currentframe==2){
trace(_currentframe);
this.gotoAndStop("stop");
}
}
}

it works fine. When I press kinase, it will play and unfold and when I press channel, it will go back and fold. However, when i press kinase again, it does not unfold. Is there a different way than this.gotoAndStop("stop"); to stop onEnterFrame and reset everything as it was? "stop" is frame 1.

Thanks.