beginFill()
Top  Previous  Next


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

Syntax
mySprite.beginFill({rgb {,alpha})

Arguments
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; drawing method indicating the start of a new path. If the current position is not equal to the position previously defined by the moveTo method, the path is closed and filled - similar to the endFill method.