MovieClip.loadMovie()
Availability
Flash Player 5.
Usage
my_mc.loadMovie(url:String [,variables:String]) : Void
Parameters
The absolute or relative URL of the SWF file or JPEG file to be loaded. A relative path
url
must be relative to the SWF file at level 0. Absolute URLs must include the protocol reference,
such as http:// or file:///.
An optional parameter specifying an HTTP method for sending or loading
variables
variables. The parameter must be the string
this parameter. The
numbers of variables. The
used for long strings of variables.
Returns
Nothing.
Description
Method; loads SWF or JPEG files into a movie clip in Flash Player while the original SWF file
is playing.
Tip: If you want to monitor the progress of the download, use
this function.
Without the
loadMovie()
method lets you display several SWF files at once and switch between SWF files
loadMovie()
without loading another HTML document.
A SWF file or image loaded into a movie clip inherits the position, rotation, and scale properties
of the movie clip. You can use the target path of the movie clip to target the loaded SWF file.
When calling
loadMovie()
movie, as shown in the following code. If you don't set
the loader has access only to its own library, but not the library in the loaded movie:
myMovieClip._lockroot = true;
Use the
MovieClip.unloadMovie()
method. Use the
loadMovie()
file, and update the variables of the SWF file with new values.
538
Chapter 2: ActionScript Language Reference
method appends the variables to the end of the URL and is used for small
GET
method sends the variables in a separate HTTP header and is
POST
method, Flash Player displays a single SWF file and then closes. The
, set the
MovieClip._lockroot
method to remove SWF files or images loaded with the
MovieClip.loadVariables()
or
. If there are no variables to be sent, omit
GET
POST
MovieClipLoader.loadClip()
property to
_lockroot
method to keep the active SWF
instead of
in the loader
true
to
in the loader movie,
true
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?