Learning ActionScript 2.0 in Adobe Flash |
|
|
|
| Animation, Filters, and Drawings > Drawing with ActionScript > Using line styles | |||
The Flash Drawing API lets you specify a line style that Flash uses for subsequent calls to MovieClip.lineTo() and MovieClip.curveTo() until you call MovieClip.lineStyle() with different parameters, as follows:
lineStyle(thickness:Number, rgb:Number, alpha:Number, pixelHinting:Boolean, noScale:String, capsStyle:String, jointStyle:String, miterLimit:Number)
You can call MovieClip.lineStyle() in the middle of drawing a path to specify different styles for different line segments within a path.
For more information on using ActionScript to set line styles, see the following sections:
|
|
|
|