Loadmovienum() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

loadMovieNum()

Availability
Flash Player 4. Flash 4 files opened in Flash 5 or later are converted to use the correct syntax.
Usage
loadMovieNum(url:String,level:Number [, variables:String]) : Void
Parameters
The absolute or relative URL of the SWF or JPEG file to be loaded. A relative path must be
url
relative to the SWF file at level 0. For use in the stand-alone Flash Player or for testing 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 disk drive specifications.
An integer specifying the level in Flash Player into which the SWF file will load.
level
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.
Description
Function; loads a SWF or JPEG file into a level in Flash Player while the originally loaded SWF
file plays.
Tip: If you want to monitor the progress of the download, use
this function.
Normally, Flash Player displays a single SWF file and then closes. The
lets you display several SWF files at once and switch among SWF files without loading another
HTML document.
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.
374
Chapter 2: ActionScript Language Reference
ActionScript Language Reference
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
MovieClipLoader.loadClip()
loadMovie()
, where
is the level number, to target the
_levelN
N
CHAPTER 2
instead of
loadMovieNum()
instead of
loadMovieNum()
loadMovieNum()
action
.
,

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents