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 here’s the link to code below:
http://flashgameu.com/ask_gary/ask_gary_creating_url_button_as3_way.html
here’s the code:
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:
- in this code i don’t know where to add " _self " so it will open in same window…
- this code only work when testing movie …when published buttons stop working…
using flash cs3, windows vista and IE7