Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.display 
GraphicsSolidFill 
Packageflash.display
Classpublic final class GraphicsSolidFill
InheritanceGraphicsSolidFill Inheritance Object
Implements IGraphicsFill, IGraphicsData

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Defines a solid fill.

Use a GraphicsSolidFill object with the Graphics.drawGraphicsData() method. Drawing a GraphicsSolidFill object is the equivalent of calling the Graphics.beginFill() method.

See also



Public Properties
 PropertyDefined By
  alpha : Number = 1.0
Indicates the alpha transparency value of the fill.
GraphicsSolidFill
  color : uint = 0
The color of the fill.
GraphicsSolidFill
 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
Public Methods
 MethodDefined By
  
GraphicsSolidFill(color:uint = 0, alpha:Number = 1.0)
Creates a new GraphicsSolidFill object.
GraphicsSolidFill
 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
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

alpha

property
public var alpha:Number = 1.0

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Indicates the alpha transparency value of the fill. Valid values are 0 (fully transparent) to 1 (fully opaque). The default value is 1. Display objects with alpha set to 0 are active, even though they are invisible.

color

property 
public var color:uint = 0

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

The color of the fill. Valid values are in the hexadecimal format 0xRRGGBB. The default value is 0xFF0000 (or the uint 0).

Constructor Detail

GraphicsSolidFill

()Constructor
public function GraphicsSolidFill(color:uint = 0, alpha:Number = 1.0)

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5

Creates a new GraphicsSolidFill object.

Parameters
color:uint (default = 0) — The color value. Valid values are in the hexadecimal format 0xRRGGBB.
 
alpha:Number (default = 1.0) — The alpha transparency value. Valid values are 0 (fully transparent) to 1 (fully opaque).