Packageflash.display
Classpublic final class GraphicsSolidFill
InheritanceGraphicsSolidFill Inheritance Object
ImplementsIGraphicsData, IGraphicsFill

Language version: ActionScript 3.0
Runtime version: 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

flash.display.Graphics.beginFill()
flash.display.Graphics.drawGraphicsData()


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
alphaproperty
public var alpha:Number = 1.0

Language version: ActionScript 3.0
Runtime version: 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.

colorproperty 
public var color:uint = 0

Language version: ActionScript 3.0
Runtime version: 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 version: 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).