PDA

View Full Version : Link to URL


jacksm4ck
09-01-2010, 12:25 AM
Hi, I have an issue when I link a button to a URL. In this case, I have this script in my button:

on (release) {
getURL("insertURLhere", "_blank");
}


The problem is, when I have my swf embedded in a website, it'll open in a new window. I'm not too sure on how I write the script for either instance, new window, or not. Any help is greatly appreciated!

flashGeneral
09-01-2010, 12:43 AM
Here's the options for opening the url.

"_self" specifies the current frame in the current window.
"_blank" specifies a new window.
"_parent" specifies the parent of the current frame.
"_top" specifies the top-level frame in the current window.