Package | mx.graphics |
Class | public class SolidColor |
Inheritance | SolidColor EventDispatcher Object |
Implements | IFill |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Default MXML Propertycolor
See also
Public Properties
Property | Defined By | ||
---|---|---|---|
alpha : Number
The transparency of a color. | SolidColor | ||
color : uint
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 |
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructor. | SolidColor | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | ||
Starts the fill. | SolidColor | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Ends the fill. | SolidColor | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
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 | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Property Detail
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. When this property is modified, it dispatches the propertyChange
event.
Implementation
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. When this property is modified, it dispatches the propertyChange
event.
Implementation
public function get color():uint
public function set color(value:uint):void
Constructor Detail
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.
|
Method Detail
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.
|
Thu May 20 2010, 02:19 AM -07:00