| Package | flare.animate.interpolate |
| Class | public class ObjectInterpolator |
| Inheritance | ObjectInterpolator Interpolator |
Object values. Simply swaps the
initial value for the end value for interpolation fractions greater
than or equal to 0.5.
| Method | Defined by | ||
|---|---|---|---|
|
ObjectInterpolator(target:Object, property:String, start:Object, end:Object)
Creates a new ObjectInterpolator.
| ObjectInterpolator | ||
![]() |
addInterpolatorRule(f:Function):void
[static]
Adds a rule to the interpolator factory.
| Interpolator | |
![]() |
addInterpolatorType(valueType:String, interpType:String):void
[static]
Extends the interpolator factory with a new interpolator type.
| Interpolator | |
![]() |
clearInterpolatorRules():void
[static]
Clears all interpolator rule functions from the interpolator
factory.
| Interpolator | |
![]() |
clearInterpolatorTypes():void
[static]
Clears the lookup table of interpolator types, removing all
type to interpolator mappings.
| Interpolator | |
![]() |
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.
| ObjectInterpolator | ||
![]() |
reclaim(interp:Interpolator):void
[static]
Reclaims an interpolator for later recycling.
| Interpolator | |
![]() |
reset(target:Object, property:String, start:Object, end:Object):void
Re-initializes an exising interpolator instance.
| Interpolator | |
| Method | Defined by | ||
|---|---|---|---|
|
init(start:Object, end:Object):void
Initializes this interpolator.
| ObjectInterpolator | ||
| ObjectInterpolator | () | constructor |
public function ObjectInterpolator(target:Object, property:String, start:Object, end:Object)Creates a new ObjectInterpolator.
Parameterstarget:Object — the object whose property is being interpolated
|
|
property:String — the property to interpolate
|
|
start:Object — the starting object value to interpolate from
|
|
end:Object — the target object value to interpolate to
|
| init | () | method |
protected override function init(start:Object, end:Object):voidInitializes this interpolator.
Parametersstart:Object — the starting value of the interpolation
|
|
end:Object — the target value of the interpolation
|
| interpolate | () | method |
public override function interpolate(f:Number):voidCalculate and set an interpolated property value. This method sets the target object's property to the starting value if the interpolation fraction is less than 0.5 and to the ending value if the fraction is greather than or equal to 0.5.
Parametersf:Number — the interpolation fraction (typically between 0 and 1)
|