Methods
getURL(url, windowopt)
Opens a browser window. Analog to the AS2 getURL
function.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
url |
URLRequest | The URL to navigate to. |
||
window |
string |
<optional> |
"_blank" | Where to open the window. Can be "_blank" for a new window, "_self" for the current window, "_parent" for the frame parent, and "_top" for the frame root. |
Examples
// Go to Google
getURL("http://google.com");
// Setup a button that opens a new window when clicked using a global "clickTag" variable
button.onRelease = function () {
var url = _root.clickTag || "http://google.com";
getURL(url);
});
trace(…message)
Logs a message to the console. The console can be viewed by pressing F12 in most web browsers.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
Object |
<repeatable> |
The message to print out. |