# How to add a hyperlink to a movie clip button

**URL:** https://forum.kirupa.com/t/how-to-add-a-hyperlink-to-a-movie-clip-button/187761
**Category:** flash
**Created:** [May 2, 2006, 3:40am UTC](https://forum.kirupa.com/t/how-to-add-a-hyperlink-to-a-movie-clip-button/187761 "2006-05-02T03:40:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![altema](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@altema](https://forum.kirupa.com/u/altema)
#### Post date: [May 2, 2006, 3:40am UTC](https://forum.kirupa.com/t/how-to-add-a-hyperlink-to-a-movie-clip-button/187761/1 "2006-05-02T03:40:16Z")

</div>

After you finish the Creating Movie Clip Buttons tutorial you might want to know how to add a hyperlink to it. Just study the last 2 lines of code

this.button\_mc3.onRollOver = function() {  
button\_mc3.gotoAndPlay("\_over");  
}

this.button\_mc3.onRollOut = function() {  
button\_mc3.gotoAndPlay("\_out");  
}

button\_mc3.onRelease = function() {  
button\_mc3.getURL(“[http://www.beaniebabycastle.com](http://www.beaniebabycastle.com)”);  
}
