| Package | mx.graphics |
| Class | public class SolidColor |
| Inheritance | SolidColor Object |
| Implements | IFill |
Default MXML Propertycolor
See also
| Property | Defined by | ||
|---|---|---|---|
| alpha : Number = 1.0
The transparency of a color.
| SolidColor | ||
| color : uint = 0x000000
A color value.
| SolidColor | ||
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| SolidColor | ||
|
Starts the fill.
| SolidColor | ||
|
Ends the fill.
| SolidColor | ||
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| alpha | property |
public var alpha:Number = 1.0The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).
The default value is 1.0.
| color | property |
public var color:uint = 0x000000A color value.
| SolidColor | () | constructor |
public function SolidColor(color:uint = 0x000000, alpha:Number = 1.0)Constructor.
Parameterscolor:uint (default = 0x000000) — Specifies the color. The default value is 0x000000 (black).
|
|
alpha:Number (default = 1.0) — Specifies the level of transparency. Valid values range from
0.0 (completely transparent) to 1.0 (completely opaque). The default value is 1.0.
|
| begin | () | method |
public function begin(target:Graphics, rc:Rectangle):voidStarts the fill.
Parameterstarget:Graphics — The target Graphics object that is being filled.
|
|
rc:Rectangle — The Rectangle object that defines the size of the fill inside the
target. If the dimensions of the Rectangle are larger than the
dimensions of the target, the fill is clipped. If the dimensions
of the Rectangle are smaller than the dimensions of the target,
the fill expands to fill the entire target.
|
| end | () | method |
public function end(target:Graphics):voidEnds the fill.
Parameterstarget:Graphics — The Graphics object that is being filled.
|
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/langref/mx/graphics/SolidColor.html