Packagecom.threerings.display
Classpublic class AlphaFade
InheritanceAlphaFade Inheritance LinearAnimation Inheritance AnimationImpl

An Animation that linearly transitions the alpha attribute of a given display object from one value to another and optionally executes a callback function when the transition is complete.



Protected Properties
 PropertyDefined by
  _disp : DisplayObject
AlphaFade
 Inherited_done : Function
LinearAnimation
 Inherited_duration : Number
LinearAnimation
 Inherited_from : Number
LinearAnimation
 Inherited_to : Number
LinearAnimation
Public Methods
 MethodDefined by
  
AlphaFade(disp:DisplayObject, from:Number = 0, to:Number = 1, duration:Number = 1, done:Function = null)
Constructs a new AlphaFade instance.
AlphaFade
 Inherited
isPlaying():Boolean
AnimationImpl
 Inherited
AnimationImpl
 Inherited
AnimationImpl
 Inherited
updateAnimation(elapsed:Number):void
LinearAnimation
  
updateForValue(value:Number):void
AlphaFade
Property detail
_dispproperty
protected var _disp:DisplayObject
Constructor detail
AlphaFade()constructor
public function AlphaFade(disp:DisplayObject, from:Number = 0, to:Number = 1, duration:Number = 1, done:Function = null)

Constructs a new AlphaFade instance. The alpha values should lie in [0, 1] and the duration is measured in milliseconds.

Parameters
disp:DisplayObject
 
from:Number (default = 0)
 
to:Number (default = 1)
 
duration:Number (default = 1)
 
done:Function (default = null)
Method detail
updateForValue()method
public override function updateForValue(value:Number):voidParameters
value:Number