MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 421

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

Example
The following
loadMovie()
is an invisible movie clip on the Stage with the instance name
function uses this movie clip as the target parameter to load the products in the SWF file into the
correct position on the Stage.
on(release) {
loadMovie("products.swf",_root.dropZone);
}
The following example loads a JPEG image from the same directory as the SWF file that calls the
function:
loadMovie()
loadMovie("image45.jpeg", "ourMovieClip");
See also
,
_level
loadMovieNum()
loadMovieNum()
Availability
Flash Player 4. Flash 4 files opened in Flash 5 or later are converted to use the correct syntax.
Usage
loadMovieNum("url",level [, variables])
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-movie 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 be loaded.
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 is playing.
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 between SWF files without loading another
HTML document.
statement is attached to a navigation button labeled Products. There
,
MovieClipLoader.loadClip(),
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
. The
dropZone
unloadMovie()
MovieClipLoader.loadClip()
loadMovieNum()
loadMovieNum()
loadMovie()
instead of
action
421

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents