Complex Rollover/Rollout GotoandStop

I was following the tutorial in the tutorial section about complex rollover/rollout movie clip functions. Right now I have a piece of text and a movie clip underline thing. When you rollover the text and/or the movie clip it does everything it needs to but rather than have it link to a page I want it to use the _root.gotoandStop function. This is my code and it is not working but not picking up any errors:

stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;
play();

}

this.onRollOut = function(){

rewind = true;

}

this.onRelease = function(){

_root.gotoAndStop(31);

}

Thanks for any help