lineStyle()
Top  Previous  Next


SWiSH Player Support
SWF6 or later - Not Supported (Use File | Test | Browser/Player)

Syntax
mySprite.lineStyle({thickness {,rgb {,alpha}}})

Arguments
thickness: integer defining the thickness of the line in points. Acceptable values are between 0 and 255. If no value is specified a line is not drawn. A value of 0 indicates a hairline thickness.
rbg
: specifies the color of the fill in a hex color value (eg. Black is 0x000000, white is 0xFFFFFF, etc).
alpha: specifies the opacity of the fill color. This argument is optional and defaults to 100 (opaque) if not provided. Acceptable values are 0 through 100.

Returns
Nothing.

Description
Method; defines a line style for use with lineTo and curveTo methods.

Note:
using the clear method will reset the lineStyle to an undefined state.