getURL (MovieClip.getURL method)
public getURL(url:String, [window:String], [method:String]) : Void
Loads a document from the specified URL into the specified window. You can also use the
method to pass variables to another application that is defined at the URL by using
getURL()
a
or
method.
GET
POST
Web pages that host Flash content must explicitly set the
allow or deny scripting for the Flash Player from the HTML code (in the
Internet Explorer or the
When
allowScriptAccess
When
allowScriptAccess
When
allowScriptAccess
version 8 ), outbound scripting is allowed if the SWF file is from the same domain as the
hosting web page.
If
allowScriptAccess
for version 8 SWF files, and the default value is
"sameDomain"
version SWF files.
When using this method, consider the Flash Player security model. For Flash Player 8, the
method is not allowed if the calling SWF file is in the local-with-file-system sandbox and the
resource is nonlocal.
For more information, see the following:
Chapter 17, "Understanding Security," in Learning ActionScript 2.0 in Flash
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 5
Parameters
- The URL from which to obtain the document.
url:String
[optional] - A parameter specifying the name, frame, or expression that
window:String
specifies the window or HTML frame that the document is loaded into. You can also use one
of the following reserved target names:
window,
specifies a new window,
_blank
and
specifies the top-level frame in the current window.
_top
872
ActionScript classes
tag for Netscape Navigator):
EMBED
is
, outbound scripting always fails.
"never"
is
, outbound scripting always succeeds.
"always"
is
"sameDomain"
is not specified by an HTML page, the default value is
_self
_parent
allowScriptAccess
(supported by SWF files starting with
specifies the current frame in the current
specifies the parent of the current frame,
attribute to
tag for
PARAM
for earlier
"always"
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?
Questions and answers