# RollOver/RollOut button only links to url?

**URL:** <https://forum.kirupa.com/t/rollover-rollout-button-only-links-to-url/300219>\
**Category:** Uncategorized\
**Created:** [November 17, 2009, 8:29pm UTC](https://forum.kirupa.com/t/rollover-rollout-button-only-links-to-url/300219 "2009-11-17T20:29:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy6521](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@Andy6521](https://forum.kirupa.com/u/Andy6521)\
**Post date:** [November 17, 2009, 8:29pm UTC](https://forum.kirupa.com/t/rollover-rollout-button-only-links-to-url/300219/1 "2009-11-17T20:29:34Z")

</div>

Hi guys,

i have followed the complex button tutorial today to design a websites buttons…

I wanted each button to link to a seperate frame for each seperate page of the site.

The roll out effect is all in one movieclip, with the actions on frame one (below)

[FONT=Arial][SIZE=2] //stop(); this.onEnterFrame = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] if(rewind == true){ [/SIZE][/FONT][FONT=Arial][SIZE=2] prevFrame(); [/SIZE][/FONT][FONT=Arial][SIZE=2] } [/SIZE][/FONT][FONT=Arial][SIZE=2] } this.onRollOver = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] rewind = false; play(); [/SIZE][/FONT][FONT=Arial][SIZE=2] } this.onRollOut = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] rewind = true; [/SIZE][/FONT][FONT=Arial][SIZE=2] } this.onRelease = function(){ [/SIZE][/FONT][FONT=Arial][SIZE=2] getURL(“[http://www.kirupa.com](http://www.kirupa.com)”,"\_blank"); [/SIZE][/FONT][FONT=Arial][SIZE=2] } [/SIZE][/FONT]

i tried changing the last section to this:

[FONT=Arial][SIZE=2]this.onRelease = function(){ [/SIZE][/FONT]  
{gotoAndStop(2);

}

I also tried removing the last section entirly and making the overall movieclip into a button and putting the following actionscript to the button:

on (release) {gotoAndStop(3);

}

but I have had no success, it works perfectly for URL’s typically!

Any ideas would be greatly appreciated.

Thanks.

Andy.

this is the tutorial i followed: [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)
