Packageflare.animate.interpolate
Classpublic class ArrayInterpolator
InheritanceArrayInterpolator Inheritance Interpolator

Interpolator for numeric Array values. Each value contained in the array should be a numeric (Number or int) value.



Protected Properties
 PropertyDefined by
 Inherited_prop : Property
The property to interpolate.
Interpolator
 Inherited_target : Object
The target object whose property is being interpolated.
Interpolator
Public Methods
 MethodDefined by
  
ArrayInterpolator(target:Object, property:String, start:Object, end:Object)
Creates a new ArrayInterpolator.
ArrayInterpolator
 Inherited
addInterpolatorRule(f:Function):void
[static] Adds a rule to the interpolator factory.
Interpolator
 Inherited
addInterpolatorType(valueType:String, interpType:String):void
[static] Extends the interpolator factory with a new interpolator type.
Interpolator
 Inherited
[static] Clears all interpolator rule functions from the interpolator factory.
Interpolator
 Inherited
[static] Clears the lookup table of interpolator types, removing all type to interpolator mappings.
Interpolator
 Inherited
create(target:Object, property:String, start:Object, end:Object):Interpolator
[static] Returns a new interpolator instance for the given target object, property name, and interpolation target value.
Interpolator
  
interpolate(f:Number):void
Calculate and set an interpolated property value.
ArrayInterpolator
 Inherited
reclaim(interp:Interpolator):void
[static] Reclaims an interpolator for later recycling.
Interpolator
 Inherited
reset(target:Object, property:String, start:Object, end:Object):void
Re-initializes an exising interpolator instance.
Interpolator
Protected Methods
 MethodDefined by
  
init(start:Object, end:Object):void
Initializes this interpolator.
ArrayInterpolator
Constructor detail
ArrayInterpolator()constructor
public function ArrayInterpolator(target:Object, property:String, start:Object, end:Object)

Creates a new ArrayInterpolator.

Parameters
target:Object — the object whose property is being interpolated
 
property:String — the property to interpolate
 
start:Object — the starting array of values to interpolate from
 
end:Object — the target array to interpolate to. This should be an array of numerical values.
Method detail
init()method
protected override function init(start:Object, end:Object):void

Initializes this interpolator.

Parameters
start:Object — the starting value of the interpolation
 
end:Object — the target value of the interpolation
interpolate()method 
public override function interpolate(f:Number):void

Calculate and set an interpolated property value.

Parameters
f:Number — the interpolation fraction (typically between 0 and 1)