MovieClip
885
This code draws the following image (the image is scaled by 50%):
See also
beginGradientFill (MovieClip.beginGradientFill method)
,
lineStyle
(MovieClip.lineStyle method)
,
lineTo (MovieClip.lineTo method)
,
moveTo
(MovieClip.moveTo method)
lineStyle (MovieClip.lineStyle method)
public lineStyle(thickness:Number, rgb:Number, alpha:Number,
pixelHinting:Boolean, noScale:String, capsStyle:String,
jointStyle:String, miterLimit:Number) : Void
Specifies a line style that Flash uses for subsequent calls to the
lineTo()
and
curveTo()
methods until you call the
lineStyle()
method with different parameters. You can call
lineStyle()
in the middle of drawing a path to specify different styles for different line
segments within a path.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability:
ActionScript 1.0; Flash Player 6 - Additional parameters pixelHinting, noScale,
capsStyle, jointStyle, and miterLimit are available in Flash Player 8.
Parameters
thickness
:Number
- An integer that indicates the thickness of the line in points; valid values
are 0 to 255. If a number is not specified, or if the parameter is
undefined
, a line is not
drawn. If a value of less than 0 is passed, Flash Player uses 0. The value 0 indicates hairline
thickness; the maximum thickness is 255. If a value greater than 255 is passed, the Flash
interpreter uses 255.
NO
TE
Calls to
clear()
set the line style back to undefined.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...