If you want to specify a target instead of a level, use
Flash Player has a stacking order of levels starting with level 0. These levels are like layers of
acetate; they are transparent except for the objects on each level. When you use
you must specify a level in Flash Player into which the SWF file will load. When a SWF file is
loaded into a level, you can use the syntax,
SWF file.
When you load a SWF file, you can specify any level number and you can load SWF files into a
level that already has a SWF file loaded into it. If you do, the new SWF file will replace the
existing SWF file. If you load a SWF file into level 0, every level in Flash Player is unloaded, and
level 0 is replaced with the new file. The SWF file in level 0 sets the frame rate, background color,
and frame size for all other loaded SWF files.
The
loadMovieNum()
both images and SWF files, the upper left corner of the image aligns with the upper left corner of
the Stage when the file loads. Also in both cases, the loaded file inherits rotation and scaling, and
the original content is overwritten.
Use
unloadMovieNum()
Example
This example loads the JPEG image image45.jpg into level 2 of Flash Player.
loadMovieNum("http://www.blag.com/image45.jpg", 2);
See also
,
loadMovie()
unloadMovieNum()
loadVariables()
Availability
Flash Player 4; behavior changed in Flash Player 7.
Usage
loadVariables ("url" , target [, variables])
Parameters
An absolute or relative URL where the variables are located. If the SWF file issuing this call
url
is running in a web browser,
"Description," below.
The target path to a movie clip that receives the loaded variables.
target
An optional parameter specifying an HTTP method for sending variables. The
variables
parameter must be the string
The
method appends the variables to the end of the URL and is used for small numbers of
GET
variables. The
POST
strings of variables.
Returns
Nothing.
422
Chapter 12: ActionScript Dictionary
action also allows you to load JPEG files into a SWF file while it plays. For
to remove SWF files or images that were loaded with
,
_level
must be in the same domain as the SWF file; for details, see
url
or
. If there are no variables to be sent, omit this parameter.
GET
POST
method sends the variables in a separate HTTP header and is used for long
loadMovie()
, where
is the level number, to target the
_levelN
N
instead of
loadMovieNum()
loadMovieNum()
loadMovieNum()
.
,
.
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?