MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 512

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

Advertisement

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.lineStyle()
MovieClip.loadMovie()
Availability
Flash Player 5.
Usage
my_mc.loadMovie("url" [,variables])
Parameters
The absolute or relative URL of the SWF file or JPEG file to be loaded. A relative path
url
must be relative to the SWF file at level 0. Absolute URLs must include the protocol reference,
such as http:// or file:///.
An optional parameter specifying an HTTP method for sending or loading
variables
variables. The parameter must be the string
this parameter. The
numbers of variables. The
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
this function.
Without the
loadMovie()
method lets you display several SWF files at once and switch between SWF files
loadMovie()
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.
512
Chapter 12: ActionScript Dictionary
,
MovieClip.createEmptyMovieClip()
,
MovieClip.moveTo()
method appends the variables to the end of the URL and is used for small
GET
method sends the variables in a separate HTTP header and is
POST
method, Flash Player displays a single SWF file and then closes. The
or
. If there are no variables to be sent, omit
GET
POST
MovieClipLoader.loadClip()
,
MovieClip.endFill()
instead of
,

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?

Subscribe to Our Youtube Channel

Table of Contents