Name
MovieClip.getURL( ) Method — load a document into a browser window
Availability
Method form introduced in Flash 5 (global form supported by Flash 2,
enhanced in Flash 4 to include the method
argument)
Synopsis
mc.getURL(URL, window, method)
Arguments
- URL
A string specifying the location of the document to load or external script to run.
- window
An optional string, specifying the name of the browser window or frame into which to load the document. May be a custom name or one of the four presets:
"_blank"
,"_ parent"
,"_self"
, or"_top"
.
- method
An optional string literal specifying the method by which to send the variables from
mc
to an external script. Must be either the literal"GET"
or"POST"
; no other expression is allowed.
Description
The MovieClip.getURL( )
method is an alternative
to the global getURL( )
function. Its method
form is useful only when variables are being sent, in which case
getURL( )
sends the variables from
mc
, which does not have to be the current
timeline.
See Also
For general usage instructions, see the global getURL(
)
function.
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.