# Complex Button RollOut/RollOver Effects Tutorial

**URL:** https://forum.kirupa.com/t/complex-button-rollout-rollover-effects-tutorial/148090
**Category:** Uncategorized
**Created:** [May 17, 2005, 1:30am UTC](https://forum.kirupa.com/t/complex-button-rollout-rollover-effects-tutorial/148090 "2005-05-17T01:30:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nickascott](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nickascott](https://forum.kirupa.com/u/nickascott)
#### Post date: [May 17, 2005, 1:30am UTC](https://forum.kirupa.com/t/complex-button-rollout-rollover-effects-tutorial/148090/1 "2005-05-17T01:30:14Z")

</div>

Can anyone help. I am trying to use the Complex Button RollOut/RollOver Effects Tutorial from this site. [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

I am having problems getting the button when clicked to go to a frame in my movie. The goToAndPlay code does not seem to work. Any ideas what I am doing wrong? I know there is no gotoandplay code in the tutorial, I want to rplace the getUrl code.

This is the code I have,

stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};  
this.onRollOver = function() {  
rewind = false;  
play();  
};  
this.onRollOut = function() {  
rewind = true;  
};  
this.onRelease = function() {  
gotoAndPlay(“Scene 1”, 51);  
};

Thanks Nick
