MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 511

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

Advertisement

Description
Method; specifies a line style that Flash uses for subsequent calls to
until you call
lineStyle()
drawing a path to specify different styles for different line segments within a path.
Note: Calls to
clear
Example
The following code draws a triangle with a 5-point, solid magenta line and no fill.
_root.createEmptyMovieClip( "triangle", 1 );
with ( _root.triangle )
{
lineStyle( 5, 0xff00ff, 100 );
moveTo( 200, 200 );
lineTo( 300,300 );
lineTo( 100, 300 );
lineTo( 200, 200 );
}
See also
MovieClip.beginFill()
MovieClip.curveTo()
MovieClip.lineTo()
Availability
Flash Player 6.
Usage
my_mc.lineTo(x, y)
Parameters
An integer indicating the horizontal position relative to the registration point of the parent
x
movie clip.
An integer indicating the vertical position relative to the registration point of the parent
y
movie clip.
Returns
Nothing.
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.
with different parameters. You can call
reset
back to
lineStyle()
,
MovieClip.beginGradientFill()
,
MovieClip.lineTo()
,
x
before any calls to the
lineTo()
,
). If any of the parameters are missing, this method fails and the current
0
0
.
undefined
,
,
MovieClip.moveTo()
). If the movie clip that you are drawing in contains
y
lineTo()
moveTo()
and
lineTo()
curveTo()
in the middle of
lineStyle()
,
MovieClip.clear()
are drawn underneath
method, the current drawing
MovieClip.lineTo()
,
); the
x
y
511

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