# Need help with the complex button script

**URL:** <https://forum.kirupa.com/t/need-help-with-the-complex-button-script/165064>\
**Category:** flash\
**Created:** [October 7, 2005, 9:22am UTC](https://forum.kirupa.com/t/need-help-with-the-complex-button-script/165064 "2005-10-07T09:22:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmb](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jmb](https://forum.kirupa.com/u/jmb)\
**Post date:** [October 7, 2005, 9:22am UTC](https://forum.kirupa.com/t/need-help-with-the-complex-button-script/165064/1 "2005-10-07T09:22:36Z")

</div>

Hi there,

Im new here, and was hoping somone could help me out.

I am trying to use the complex button tutorial in a movie ([http://kirupa.com/developer/mx2004/button\_effect.htm](http://kirupa.com/developer/mx2004/button_effect.htm)) but can’t seem to get it to “gotoAndPlay()” a scene instead of opening a browser. Currently it opens the kirupa website when clicked.

I have the main movie in scene 2 and want to go to scene 3 when clicked.

Also, if I was to use a “loadmovie” action, how would I do this with this script?

The script is:

stop();

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

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

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

this.onRelease = function(){  
getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank");  
}

Any help would be much appretiated.

Thanks.
