Yahoo! UI Library

animation  2.5.2

Yahoo! UI Library > animation > YAHOO.util.AnimMgr

Show Private Show Protected

Class YAHOO.util.AnimMgr

Handles animation queueing and threading. Used by Anim and subclasses.

Properties

delay - Int

Interval delay in milliseconds, defaults to fastest possible.

fps - Int

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

Methods

registerElement

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

run

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

start

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

stop

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


Copyright © 2007 Yahoo! Inc. All rights reserved.