474
ActionScript classes
Parameters
url
:
String
- The URL from which to obtain the document.
window
:
String
[optional] - A parameter specifying the name, frame, or expression that
specifies the window or HTML frame that the document is loaded into. You can also use one
of 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,
and
_top
specifies the top-level frame in the current window.
method
:
String
[optional] - A String (either
"GET"
or
"POST")
that specifies a method for
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
GET
or
POST
method.
GET
appends the variables to the end of the URL and is used for a small number of variables.
POST
sends the variables in a separate HTTP header and is used for long strings of variables.
Example
The following ActionScript creates a new 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
getURL()
method also allows you to send variables to a remove server-side script, as seen
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");
See also
getURL function
,
sendAndLoad (LoadVars.sendAndLoad method)
,
send
(LoadVars.send method)
globalToLocal (MovieClip.globalToLocal method)
public globalToLocal(pt:
Object
) : Void
Converts the
pt
object from Stage (global) coordinates to the movie clip's (local) coordinates.
The
MovieClip.globalToLocal()
method allows you to convert any given x and y
coordinates from values that are relative to the top-left corner of the Stage to values that are
relative to the top-left corner of a specific movie clip.
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...