Packagecom.threerings.display
Classpublic class AnimationManager

Manages animations.



Protected Properties
 PropertyDefined by
  _anims : Array
[static] All the currently running animations.
AnimationManager
  _framer : Sprite
[static]
AnimationManager
  _now : Number
[static] The current timestamp, accessable to all animations.
AnimationManager
Public Methods
 MethodDefined by
  
AnimationManager
  
addDisplayAnimation(disp:DisplayObject):void
[static] Track a DisplayObject that is also an Animation- it will automatically be started when added to the stage and stopped when removed.
AnimationManager
  
isPlaying(anim:Animation):Boolean
[static] Test to see if the specified animation has been started and not stopped.
AnimationManager
  
removeDisplayAnimation(disp:DisplayObject):void
[static] Stop tracking the specified DisplayObject animation.
AnimationManager
  
start(anim:Animation):void
[static] Start (or restart) the specified animation.
AnimationManager
  
stop(anim:Animation):void
[static] Stop the specified animation.
AnimationManager
Protected Methods
 MethodDefined by
  
frameHandler(event:Event):void
[static] Handle the ENTER_FRAME event.
AnimationManager
  
startDisplayAnim(event:Event):void
[static]
AnimationManager
  
stopDisplayAnim(event:Event):void
[static]
AnimationManager
Property detail
_animsproperty
protected static var _anims:Array

All the currently running animations.

_framerproperty 
protected static var _framer:Sprite
_nowproperty 
protected static var _now:Number

The current timestamp, accessable to all animations.

Constructor detail
AnimationManager()constructor
public function AnimationManager()
Method detail
addDisplayAnimation()method
public static function addDisplayAnimation(disp:DisplayObject):void

Track a DisplayObject that is also an Animation- it will automatically be started when added to the stage and stopped when removed.

Parameters
disp:DisplayObject
frameHandler()method 
protected static function frameHandler(event:Event):void

Handle the ENTER_FRAME event.

Parameters
event:Event
isPlaying()method 
public static function isPlaying(anim:Animation):Boolean

Test to see if the specified animation has been started and not stopped.

Parameters
anim:Animation

Returns
Boolean
removeDisplayAnimation()method 
public static function removeDisplayAnimation(disp:DisplayObject):void

Stop tracking the specified DisplayObject animation.

Parameters
disp:DisplayObject
start()method 
public static function start(anim:Animation):void

Start (or restart) the specified animation.

Parameters
anim:Animation
startDisplayAnim()method 
protected static function startDisplayAnim(event:Event):voidParameters
event:Event
stop()method 
public static function stop(anim:Animation):void

Stop the specified animation.

Parameters
anim:Animation
stopDisplayAnim()method 
protected static function stopDisplayAnim(event:Event):voidParameters
event:Event