PDA

View Full Version : Actionscript to open URL in new window


Jordan656
07-30-2008, 05:55 PM
Need actionscript to open link in new window.

Hey all, i have finished designing my navbar and it all works great.

Now i need to know the actionscript to open a URL in a new window. Here is the code i have in the "Action" part so far:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(16);
}


What code should i put in to open a link to say Google?

Thanks in advance :)

gnomeontherun
07-31-2008, 07:58 AM
You would use the getURL(); (http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary377.html) code.

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