Class YAHOO.util.AnimMgr

Object
   |
   +--YAHOO.util.AnimMgr

class YAHOO.util.AnimMgr
Requires:
YAHOO.util.AnimMgr
YAHOO.util.Easing
YAHOO.util.Dom
YAHOO.util.Event
YAHOO.util.CustomEvent

Field Summary [top]

Int delay
Interval delay in milliseconds, defaults to fastest possible. 
Int fps
Base frame rate (frames per second). 

Method Summary [top]

void registerElement (<object> tween)
Adds an animation instance to the animation queue. 
void run ()
Called per Interval to handle each animation frame. 
void start ()
Starts the animation thread. 
void stop (<object> tween)
Stops the animation thread or a specific animation instance. 
void unRegister (tween, index)
 

Field Detail [top]

delay

Int   delay
Interval delay in milliseconds, defaults to fastest possible.

fps

Int   fps
Base frame rate (frames per second). Arbitrarily high for better x-browser calibration (slower browsers drop more frames).

Method Detail [top]

registerElement

void registerElement (<object> tween)
Adds an animation instance to the animation queue. All animation instances must be registered in order to animate.
Parameters:
tween - The Anim instance to be be registered

run

void run ()
Called per Interval to handle each animation frame.

start

void start ()
Starts the animation thread. Only one thread can run at a time.

stop

void stop (<object> tween)
Stops the animation thread or a specific animation instance.
Parameters:
tween - A specific Anim instance to stop (optional) If no instance given, Manager stops thread and all animations.

unRegister

void unRegister (tween, index)