EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 512

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
512 Chapter 12: ActionScript Dictionary
Example
The following example draws a triangle with no lines and a partially transparent blue fill.
_root.createEmptyMovieClip ("triangle", 1);
with (_root.triangle){
beginFill (0x0000FF, 50);
lineStyle (5, 0xFF00FF, 100);
moveTo (200, 200);
lineTo (300, 300);
lineTo (100, 300);
lineTo (200, 200);
endFill();
}
See also
MovieClip.beginFill()
, MovieClip.createEmptyMovieClip(), MovieClip.endFill(),
MovieClip.lineStyle(), MovieClip.moveTo()
MovieClip.loadMovie()
Availability
Flash Player 5.
Usage
my_mc.loadMovie("url" [,variables])
Parameters
url
The absolute or relative URL of the SWF file or JPEG file to be loaded. A relative path
must be relative to the SWF file at level 0. Absolute URLs must include the protocol reference,
such as http:// or file:///.
variables An optional parameter specifying an HTTP method for sending or loading
variables. The parameter must be the string
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.
Returns
Nothing.
Description
Method; loads SWF or JPEG files into a movie clip in Flash Player while the original SWF file
is playing.
Tip: If you want to monitor the progress of the download, use MovieClipLoader.loadClip() instead of
this function.
Without the loadMovie() method, Flash Player displays a single SWF file and then closes. The
loadMovie() method lets you display several SWF files at once and switch between SWF files
without loading another HTML document.
A SWF file or image loaded into a movie clip inherits the position, rotation, and scale properties
of the movie clip. You can use the target path of the movie clip to target the loaded SWF file.

Table of Contents

Related product manuals