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:


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000998.html