| Package | graphics |
| Class | public class FillStyle |
| Inheritance | FillStyle Object |
| Implements | IFillStyle |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| alpha | property |
public var alpha:NumberThe alpha value of the fill style.
| color | property |
public var color:uintThe color value of the fill style.
| EMPTY | property |
public static var EMPTY:FillStyleThe empty FillStyle singleton.
| FillStyle | () | Constructor |
public function FillStyle(color:uint = 0, alpha:Number = 1.0)Creates a new FillStyle instance.
Parameterscolor:uint (default = 0) — The color value of the fill style.
| |
alpha:Number (default = 1.0) — The alpha value of the fill style.
|
| apply | () | method |
public function apply(graphic:Graphics):voidInitialize 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:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|