De-I > getURL
getURLSyntax
getURL(
url
[,window
[,
variables
]]);
Arguments
url
The URL from which to obtain the document. The URL must be in the same subdomain as the URL where the movie currently resides.
window
An optional argument specifying the window or HTML frame that the document should be loaded into. Enter the name of a specific window or choose from the following reserved target names:
![]() |
_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. |
variables
An optional argument specifying a method for sending variables. If there are no variables, omit this argument; otherwise, specify whether to load variables using a GET
or POST
method. GET
appends the variables to the end of the URL, and is used for small numbers of variables. POST
sends the variables in a separate HTTP header and is used for long strings of variables.
Description
Action; loads a document from a specific URL into a window, or passes variables to another application at a defined URL. To test this action, make sure the file to be loaded is at the specified location. To use an absolute URL (for example, http://www.myserver.com
), you need a network connection.
Player
Flash 2 or later. The GET and POST options are only available to Flash 4 and later versions of the Player.
Example
This example loads a new URL into a blank browser window. The getURL
action targets the variable incomingAd
as the url
parameter so that you can change the loaded URL without having to edit the Flash movie. The incomingAd
variable's value is passed into Flash earlier in the movie using a loadVariables
action.
on(release) { getURL(incomingAd, "_blank"); }
See also
loadVariables
XML.send
XML.sendAndLoad
XMLSocket.send