User Guide

MovieClip.loadMovie() 589
Description
Method; draws a line using the current line style from the current drawing position to (x, y); the
current drawing position is then set to (
x, y). If the movie clip that you are drawing in contains
content that was created with the Flash drawing tools, calls to
lineTo() are drawn underneath
the content. If you call
lineTo() before any calls to the moveTo() method, the current drawing
position defaults to (
0, 0). If any of the parameters are missing, this method fails and the current
drawing position is not changed.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Example
The following example draws a triangle with a 5-pixel, solid magenta line and a partially
transparent blue fill:
this.createEmptyMovieClip("triangle_mc", 1);
triangle_mc.beginFill(0x0000FF, 30);
triangle_mc.lineStyle(5, 0xFF00FF, 100);
triangle_mc.moveTo(200, 200);
triangle_mc.lineTo(300, 300);
triangle_mc.lineTo(100, 300);
triangle_mc.lineTo(200, 200);
triangle_mc.endFill();
See also
MovieClip.beginFill(), MovieClip.createEmptyMovieClip(), MovieClip.endFill(),
MovieClip.lineStyle(), MovieClip.moveTo()
MovieClip.loadMovie()
Availability
Flash Player 5. Loading JPEG files requires Flash Player 6 or later.
Usage
my_mc.loadMovie(url:String [,variables:String]) : Void
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.