Methods
navigateToURL(request, windowopt)
Opens a browser window. Analog to the AS3 flash.net.navigateToURL
function.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
request |
URLRequest | The URLRequest that specifies 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
navigateToURL(new URLRequest("http://google.com"));
// Setup a button that opens a new window when clicked using a global "clickTag" variable
button.addEventListener(MouseEvent.CLICK, function () {
var url = root.loaderInfo.parameters.clickTag || "http://google.com";
navigateToURL(new URLRequest(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. |