Package | mx.graphics |
Class | public class SolidColor |
Inheritance | SolidColor flash.events.EventDispatcher |
Implements | IFill |
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Default MXML Propertycolor
See also
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(target:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
Starts the fill. | SolidColor | ||
end(target:Graphics):void
Ends the fill. | SolidColor |
alpha | property |
alpha:Number
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).
The default value is 1.0
.
This property can be used as the source for data binding.
public function get alpha():Number
public function set alpha(value:Number):void
color | property |
color:uint
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
A color value.
This property can be used as the source for data binding.
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(target:Graphics, targetBounds:Rectangle, targetOrigin:Point):void
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Starts the fill.
Parameters
target:Graphics — The target Graphics object that is being filled.
| |
targetBounds: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 .
| |
targetOrigin:Point — The Point that defines the origin (0,0) of the shape in the
coordinate system of target.
|
end | () | method |
public function end(target:Graphics):void
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Ends the fill.
Parameters
target:Graphics — The Graphics object that is being filled.
|