Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
SolidColor

Package | org.apache.flex.graphics
Class | public class SolidColor
Inheritance | SolidColor Object
Implements | IFill

Public Properties

| Property | Defined By
--- | --- | ---
|  | alpha : Number The transparency of a color. | SolidColor
|  | color : uint A color value. | SolidColor

Public Methods

| Method | Defined By
--- | --- | ---
|  | SolidColor(color:uint = 0x000000, alpha:Number = 1.0) Constructor. | SolidColor
|  | begin(s:IGraphicShape, targetBounds:Rectangle, targetOrigin:Point):void | SolidColor
|  | end(s:IGraphicShape):void | SolidColor

Property Detail

alpha | property

`alpha:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 10.2, AIR 2.6

The transparency of a color. Possible values are 0.0 (invisible) through 1.0 (opaque).

The default value is `1.0`.

Implementation
`public function get alpha():Number`
`public function set alpha(value:Number):void`

color | property |

`color:uint`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.3

Runtime Versions : | Flash Player 9, AIR 1.1

A color value.

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.

Parameters

| `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.

Method Detail

begin | () | method

`public function begin(s:IGraphicShape, targetBounds:Rectangle, targetOrigin:Point):void`

Parameters

| `s:IGraphicShape`
| `targetBounds:Rectangle`
| `targetOrigin:Point`

end | () | method |

`public function end(s:IGraphicShape):void`

Parameters

| `s:IGraphicShape`

Mon Sep 5 2016, 07:19 AM -07:00