Pacotemx.graphics
Classepublic class SolidColor
HerançaSolidColor Inheritance EventDispatcher Inheritance Object
Implementa IFill

Defines a representation for a color, including a color and an alpha value.

Default MXML Propertycolor

Veja também

mx.graphics.IFill


Propriedades Públicas
 PropriedadeDefinido por
  alpha : Number
The transparency of a color.
SolidColor
  color : uint
A color value.
SolidColor
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Métodos Públicos
 MétodoDefinido por
  
SolidColor(color:uint = 0x000000, alpha:Number = 1.0)
Constructor.
SolidColor
 Inherited
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
 Inherited
Dispatches an event into the event flow.
EventDispatcher
  
end(target:Graphics):void
Ends the fill.
SolidColor
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
EventDispatcher
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
EventDispatcher
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
EventDispatcher
Eventos
 Evento Descrição Definido por
 Inherited Dispatched when Flash Player or the and AIR application gains operating system focus and becomes active.EventDispatcher
 Inherited Dispatched when Flash Player loses operating system focus and is becoming inactive.EventDispatcher
Detalhes da propriedade
alphapropriedade
alpha:Number  [read-write]

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.


Implementação
    public function get alpha():Number
    public function set alpha(value:Number):void
colorpropriedade 
color:uint  [read-write]

A color value.

This property can be used as the source for data binding.


Implementação
    public function get color():uint
    public function set color(value:uint):void
Detalhes do construtor
SolidColor()Construtor
public function SolidColor(color:uint = 0x000000, alpha:Number = 1.0)

Constructor.

Parâmetros
color: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.
Detalhes do método
begin()método
public function begin(target:Graphics, rc:Rectangle):void

Starts the fill.

Parâmetros

target: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()método 
public function end(target:Graphics):void

Ends the fill.

Parâmetros

target:Graphics — The Graphics object that is being filled.