[Flash CS3] Need help with complex button script

Hello,

Thank you for your interest. I’m using a complex button as discussed in this thread (http://www.kirupa.com/developer/mx2004/button_effect.htm). This button works beautifully when used just like on that thread, to open a URL in a new page; however, I cannot make it control the timeline.

Below is the script I currently have, which is pretty much the one on the thread I mention above, except for the last function. Can someone please help me? Thanks in advance.

stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}

this.onRelease = function(){
gotoAndPlay(11);
}