Packageorg.apache.flex.graphics
Classpublic class GradientBase
InheritanceGradientBase Inheritance Object
Subclasses LinearGradient



Public Properties
 PropertyDefined By
  entries : Array
An Array of GradientEntry objects defining the fill patterns for the gradient fill.
GradientBase
  newId : String
[read-only] generate uid
GradientBase
  rotation : Number
By default, the LinearGradientStroke defines a transition from left to right across the control.
GradientBase
  x : Number
The distance by which to translate each point along the x axis.
GradientBase
  y : Number
The distance by which to translate each point along the y axis.
GradientBase
Protected Properties
 PropertyDefined By
  alphas : Array
GradientBase
  colors : Array
GradientBase
  compoundTransform : CompoundTransform
Holds the matrix and the convenience transform properties (x, y, and rotation).
GradientBase
  ratios : Array
GradientBase
  rotationInRadians : Number
[read-only]
GradientBase
Protected Methods
 MethodDefined By
  
toRad(a:Number):Number
GradientBase
Public Constants
 ConstantDefined By
  GRADIENT_DIMENSION : Number = 1638.4
[static] Value of the width and height of the untransformed gradient
GradientBase
Property Detail
alphasproperty
protected var alphas:Array

colorsproperty 
protected var colors:Array

compoundTransformproperty 
protected var compoundTransform:CompoundTransform

Language Version : ActionScript 3.0
Runtime Versions : Flash Player 9, AIR 1.1

Holds the matrix and the convenience transform properties (x, y, and rotation). The compoundTransform is only created when the matrix property is set.

entriesproperty 
entries:Array

An Array of GradientEntry objects defining the fill patterns for the gradient fill.


Implementation
    public function get entries():Array
    public function set entries(value:Array):void
newIdproperty 
newId:String  [read-only]

generate uid


Implementation
    public function get newId():String
ratiosproperty 
protected var ratios:Array

rotationproperty 
rotation:Number

Language Version : ActionScript 3.0
Product Version : Flex 3
Runtime Versions : Flash Player 9, AIR 1.1

By default, the LinearGradientStroke defines a transition from left to right across the control. Use the rotation property to control the transition direction. For example, a value of 180.0 causes the transition to occur from right to left, rather than from left to right.

The default value is 0.0.


Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void
rotationInRadiansproperty 
rotationInRadians:Number  [read-only]


Implementation
    protected function get rotationInRadians():Number
xproperty 
x:Number

The distance by which to translate each point along the x axis.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

The distance by which to translate each point along the y axis.


Implementation
    public function get y():Number
    public function set y(value:Number):void
Method Detail
toRad()method
protected function toRad(a:Number):Number

Parameters

a:Number

Returns
Number
Constant Detail
GRADIENT_DIMENSIONConstant
public static const GRADIENT_DIMENSION:Number = 1638.4

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

Value of the width and height of the untransformed gradient