Packagecom.threerings.display
Classpublic class LinearAnimation
InheritanceLinearAnimation Inheritance AnimationImpl
SubclassesAlphaFade

An Animation that linearly transitions from one value to another and optionally executes a callback function when the transition is complete. A subclass must implement updateForValue to change whatever is being animated for the value.



Protected Properties
 PropertyDefined by
  _done : Function
LinearAnimation
  _duration : Number
LinearAnimation
  _from : Number
LinearAnimation
  _to : Number
LinearAnimation
Public Methods
 MethodDefined by
  
LinearAnimation(from:Number = 0, to:Number = 1, duration:Number = 1, done:Function = null)
LinearAnimation
 Inherited
isPlaying():Boolean
AnimationImpl
 Inherited
AnimationImpl
 Inherited
AnimationImpl
  
updateAnimation(elapsed:Number):void
LinearAnimation
  
updateForValue(value:Number):void
LinearAnimation
Property detail
_doneproperty
protected var _done:Function
_durationproperty 
protected var _duration:Number
_fromproperty 
protected var _from:Number
_toproperty 
protected var _to:Number
Constructor detail
LinearAnimation()constructor
public function LinearAnimation(from:Number = 0, to:Number = 1, duration:Number = 1, done:Function = null)Parameters
from:Number (default = 0)
 
to:Number (default = 1)
 
duration:Number (default = 1)
 
done:Function (default = null)
Method detail
updateAnimation()method
public override function updateAnimation(elapsed:Number):voidParameters
elapsed:Number
updateForValue()method 
public function updateForValue(value:Number):voidParameters
value:Number