Log in

View Full Version : btn link to URL



Eleanor
04-14-2009, 05:26 PM
I'm new to ActionScript 3 - I'm trying to make a very basic link to a URL using a btn (yes, that really is all I'm after!)

in the old script it was just the following action on the button itself:


on(release){
getURL(http://www.blahblah.com,"_blank");
}

but this doesn't work anymore...please help! :confused:

Medyman
04-20-2009, 04:56 PM
1. You can't add actions to buttons in Flash CS3
2. That syntax is AS2 not AS3

There are literally hundreds of good tutorials about the differences between AS2 and AS3 on the web. Most cover mouse events as one of the first things. Try a Google search.

http://scriptplayground.com/tutorials/as/getURL-in-Actionscript-3/