MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 873

Actionscript 2.0 language reference
Table of Contents

Advertisement

[optional] - A String (either
method:String
sending variables associated with the SWF file to load. If no variables are present, omit this
parameter; otherwise, specify whether to load variables using a
appends the variables to the end of the URL and is used for a small number of variables.
sends the variables in a separate HTTP header and is used for long strings of variables.
Example
The following ActionScript creates a movie clip instance and opens the Macromedia website
in a new browser window:
this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());
loader_mc.getURL("http://www.macromedia.com", "_blank");
The
method also allows you to send variables to a remote server-side script, as seen
getURL()
in the following code:
this.createEmptyMovieClip("loader_mc", this.getNextHighestDepth());
loader_mc.username = "some user input";
loader_mc.password = "random string";
loader_mc.getURL("http://www.flash-mx.com/mm/viewscope.cfm", "_blank",
"GET");
The
MovieClip.getNextHighestDepth()
Player 7 or later. If your SWF file includes a version 2 component, use the version 2
components DepthManager class instead of the
method.
When using this method, consider the Flash Player security model.
For Flash Player 8,
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
See also
,
getURL function
sendAndLoad (LoadVars.sendAndLoad method)
(LoadVars.send method)
MovieClip.getURL()
or
that specifies a method for
"GET"
"POST")
GET
method used in these examples requires Flash
MovieClip.getNextHighestDepth()
is not allowed if the calling SWF file is in the
or
method.
POST
GET
POST
,
send
MovieClip
873

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF