Package | org.apache.flex.graphics |
Class | public class SolidColor |
Inheritance | SolidColor ![]() |
Implements | IFill |
Property | Defined By | ||
---|---|---|---|
alpha : Number
The transparency of a color. | SolidColor | ||
color : uint
A color value. | SolidColor |
Method | Defined By | ||
---|---|---|---|
SolidColor(color:uint = 0x000000, alpha:Number = 1.0)
Constructor. | SolidColor | ||
begin(s:IGraphicShape, targetBounds:Rectangle, targetOrigin:Point):void | SolidColor | ||
end(s:IGraphicShape):void | SolidColor |
alpha | property |
alpha:Number
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.3 |
Runtime Versions : | Flash Player 10.2, AIR 2.6 |
The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).
The default value is 1.0
.
public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
Language Version : | ActionScript 3.0 |
Product Version : | FlexJS 0.3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
A color value.
public function get color():uint
public function set color(value:uint):void
SolidColor | () | Constructor |
public function SolidColor(color:uint = 0x000000, alpha:Number = 1.0)
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
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(s:IGraphicShape, targetBounds:Rectangle, targetOrigin:Point):void
Parameters
s:IGraphicShape | |
targetBounds:Rectangle | |
targetOrigin:Point |
end | () | method |