# Linking buttons to different URLs

**URL:** https://forum.kirupa.com/t/linking-buttons-to-different-urls/202947
**Category:** flash
**Created:** [October 6, 2006, 12:56am UTC](https://forum.kirupa.com/t/linking-buttons-to-different-urls/202947 "2006-10-06T00:56:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wwkww](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wwkww/32/2889_2.png) [@wwkww](https://forum.kirupa.com/u/wwkww)
#### Post date: [October 6, 2006, 12:56am UTC](https://forum.kirupa.com/t/linking-buttons-to-different-urls/202947/1 "2006-10-06T00:56:59Z")

</div>

Hi,

I am using this set of code for a complex button: [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

The last line of the code launches a new window with an URL. Using this code I have created a button. But I want to use the same button object in different instances linking to different URLs. For example as buttons linking to different pages in a Web site. How do I do that?
