# Flash CS3 ,AS3, Button Hyperlink Problem..Please Help

**URL:** https://forum.kirupa.com/t/flash-cs3-as3-button-hyperlink-problem-please-help/253472
**Category:** flash
**Created:** [March 1, 2008, 6:59pm UTC](https://forum.kirupa.com/t/flash-cs3-as3-button-hyperlink-problem-please-help/253472 "2008-03-01T18:59:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DjSingh](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@DjSingh](https://forum.kirupa.com/u/DjSingh)
#### Post date: [March 1, 2008, 6:59pm UTC](https://forum.kirupa.com/t/flash-cs3-as3-button-hyperlink-problem-please-help/253472/1 "2008-03-01T18:59:59Z")

</div>

Hi guys,  
well just to let u guys now, i’m very new to flash,  
i’m trying to create a basic website with help from some notes on the web…  
The Problem i’m having is with creating buttons…  
i created a rectangle…converted it to button…then changed the color when it goes to over and down situation…but when i add text to the button and then hyperlinked that text …the link work but when i rollover mouse on my text the color does not change and when i rollover my mouse on button the color changes but the link don’t work…

so i searched online …the only thing i found was the following code from [http://flashgameu.com/ask\_gary](http://flashgameu.com/ask_gary) here’s the link to code below:  
[http://flashgameu.com/ask\_gary/ask\_gary\_creating\_url\_button\_as3\_way.html](http://flashgameu.com/ask_gary/ask_gary_creating_url_button_as3_way.html)  
here’s the code:

```auto
myButton.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("http://flashgameu.com");
navigateToURL(request);
}

```

There are 2 main problems with the above code:

1. in this code i don’t know where to add " \_self " so it will open in same window…
2. this code only work when testing movie …when published buttons stop working…

using flash cs3, windows vista and IE7
