24
Flash Lite Global Functions
loadMovieNum()
Availability
Flash Lite 1.1.
Usage
loadMovieNum(
url
,
level
[,
method
])
Operands
url
A string specifying the absolute or relative URL of the SWF file to be loaded. A relative
path must be relative to the SWF file at level 0. For use in the stand-alone Flash Lite player or
for use in test mode in the Flash authoring application, all SWF files must be stored in the
same folder and the filenames cannot include folder or drive specifications.
level
An integer specifying the level in Flash Lite where the SWF file loads.
method
An optional string parameter specifying an HTTP method for sending variables. It
must have the value
GET
or
POST
. If there are no variables to be sent, omit this parameter. The
GET
method appends the variables to the end of the URL and is used for small numbers of
variables. The
POST
method sends the variables in a separate HTTP header and is used for
long strings of variables.
Description
Function; loads a SWF file into a level in Flash Lite while the originally loaded SWF file plays.
Normally, Flash Lite displays a single SWF file and then closes. The
loadMovieNum()
function lets you display several SWF files at once and switch among SWF files without
loading another HTML document.
To specify a target instead of a level, use the
loadMovie()
function instead of
loadMovieNum()
.
Flash Lite 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
loadMovieNum()
, you must specify a level in Flash Lite where the SWF file will load. When a
SWF file is loaded into a level, you can use the syntax
_level
N
, where
N
is the level number,
to target the SWF file.
When you load a SWF file, you can specify any level number. You can load SWF files into a
level that already has a SWF file loaded into it, and the new SWF file replaces the existing file.
If you load a SWF file into level 0, every level in Flash Lite 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.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...