MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 589

Actionscript language reference
Table of Contents

Advertisement

Description
Method; draws a line using the current line style from the current drawing position to (
current drawing position is then set to (
content that was created with the Flash drawing tools, calls to
the content. If you call
position defaults to (
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.loadMovie()
Availability
Flash Player 5. Loading JPEG files requires Flash Player 6 or later.
Usage
my_mc.loadMovie(url:String [,variables:String]) : Void
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.
,
x
before any calls to the
lineTo()
,
). If any of the parameters are missing, this method fails and the current
0
0
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
). If the movie clip that you are drawing in contains
y
lineTo()
moveTo()
or
. If there are no variables to be sent, omit
GET
POST
,
x
are drawn underneath
method, the current drawing
MovieClip.loadMovie()
); the
y
589

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents