# Complex Rollover/Rollout GotoandStop

**URL:** <https://forum.kirupa.com/t/complex-rollover-rollout-gotoandstop/178032>\
**Category:** flash\
**Created:** [February 7, 2006, 7:33am UTC](https://forum.kirupa.com/t/complex-rollover-rollout-gotoandstop/178032 "2006-02-07T07:33:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![no\_rain](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@no\_rain](https://forum.kirupa.com/u/no_rain)\
**Post date:** [February 7, 2006, 7:33am UTC](https://forum.kirupa.com/t/complex-rollover-rollout-gotoandstop/178032/1 "2006-02-07T07:33:15Z")

</div>

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
