Packagegraphics
Classpublic class FillStyle
InheritanceFillStyle Inheritance Object
Implements IFillStyle

Defines the fill style of the vector shapes. See the flash.display.graphics.beginFill method.



Public Properties
 PropertyDefined By
  alpha : Number
The alpha value of the fill style.
FillStyle
  color : uint
The color value of the fill style.
FillStyle
  EMPTY : FillStyle
[static] The empty FillStyle singleton.
FillStyle
Public Methods
 MethodDefined By
  
FillStyle(color:uint = 0, alpha:Number = 1.0)
Creates a new FillStyle instance.
FillStyle
  
apply(graphic:Graphics):void
Initialize and launch the beginFill method of the specified Graphics reference.
FillStyle
  
clone():*
Creates and returns a shallow copy of the object.
FillStyle
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
FillStyle
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
FillStyle
Property Detail
alphaproperty
public var alpha:Number

The alpha value of the fill style.

colorproperty 
public var color:uint

The color value of the fill style.

EMPTYproperty 
public static var EMPTY:FillStyle

The empty FillStyle singleton.

Constructor Detail
FillStyle()Constructor
public function FillStyle(color:uint = 0, alpha:Number = 1.0)

Creates a new FillStyle instance.

Parameters
color:uint (default = 0) — The color value of the fill style.
 
alpha:Number (default = 1.0) — The alpha value of the fill style.
Method Detail
apply()method
public function apply(graphic:Graphics):void

Initialize and launch the beginFill method of the specified Graphics reference.

Parameters

graphic:Graphics

clone()method 
public function clone():*

Creates and returns a shallow copy of the object.

Returns
* — A new object that is a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.