Packageflare.util.palette
Classpublic class Palette
Implementsmx.core.IMXMLObject
SubclassesColorPalette, ShapePalette, SizePalette

Base class for palettes, such as color and size palettes, that map from interpolated scale values into visual properties



Public Properties
 PropertyDefined by
  size : int
[read-only] The number of values in the palette.
Palette
  values : Array
Array of palette values.
Palette
Protected Properties
 PropertyDefined by
  _values : Array
Array of palette values.
Palette
Public Methods
 MethodDefined by
  
getValue(f:Number):Object
Retrieves the palette value corresponding to the input interpolation fraction.
Palette
Property detail
sizeproperty
size:int  [read-only]

The number of values in the palette.

Implementation
    public function get size():int
_valuesproperty 
protected var _values:Array

Array of palette values.

valuesproperty 
values:Array  [read-write]

Array of palette values.

Implementation
    public function get values():Array
    public function set values(value:Array):void
Method detail
getValue()method
public function getValue(f:Number):Object

Retrieves the palette value corresponding to the input interpolation fraction.

Parameters
f:Number — an interpolation fraction

Returns
Object — the palette value corresponding to the input fraction