Loadmovie Function - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

loadMovie function

loadMovie(url:String, target:Object [, method:String]) :
VoidloadMovie(url:String, target:String [, method:String]) : Void
Loads a SWF or JPEG file into Flash Player while the original SWF file plays. JPEG files
saved in progressive format are not supported.
Tip: If you want to monitor the progress of the download, use
MovieClipLoader.loadClip()
The
function lets you display several SWF files at once and switch among SWF
loadMovie()
files without loading another HTML document. Without the
Player displays a single SWF file.
If you want to load a SWF or JPEG file into a specific level, use
.
loadMovie()
When a SWF file is loaded into a target movie clip, you can use the target path of that movie
clip to target the loaded SWF file. A SWF file or image loaded into a target inherits the
position, rotation, and scale properties of the targeted movie clip. The upper left corner of the
loaded image or SWF file aligns with the registration point of the targeted movie clip.
Alternatively, if the target is the root Timeline, the upper left corner of the image or SWF file
aligns with the upper left corner of the Stage.
Use
unloadMovie()
Availability: ActionScript 1.0; Flash Lite 1.1 - Loading JPEG files requires Flash Player 6 or
later.
Parameters
- The absolute or relative URL of the SWF or JPEG file to be loaded. A relative
url:String
path must be relative to the SWF file at level 0. Absolute URLs must include the protocol
reference, such as http:// or file:///.
- A reference to a movie clip object or a string representing the path to a
target:Object
target movie clip. The target movie clip is replaced by the loaded SWF file or image.
[optional] - Specifies an HTTP method for sending variables. The parameter
method:String
must be the string
GET
method appends the variables to the end of the URL and is used for small numbers of
GET
variables. The
method sends the variables in a separate HTTP header and is used for
POST
long strings of variables.
instead of this function.
to remove SWF files that were loaded with
or
. If there are no variables to be sent, omit this parameter. The
POST
function, Flash
loadMovie()
instead of
loadMovieNum()
.
loadMovie()
Global Functions
57

Advertisement

Table of Contents
loading

Table of Contents