GODPAPER | All Packages | All Classes | Index | Frames No Frames |
IAnimatable

Package | starling.animation
Interface | public interface IAnimatable
Implementors | DelayedCall, Juggler, MovieClip, ParticleSystem, Tween

The IAnimatable interface describes objects that are animated depending on the passed time. Any object that implements this interface can be added to a juggler.

When an object should no longer be animated, it has to be removed from the juggler. To do this, you can manually remove it via the method `juggler.remove(object)`, or the object can request to be removed by dispatching a Starling event with the type `Event.REMOVE_FROM_JUGGLER`. The "Tween" class is an example of a class that dispatches such an event; you don't have to remove tweens manually from the juggler.

See also

Juggler
Tween

Public Methods

| Method | Defined By
--- | --- | ---
|  | advanceTime(time:Number):void Advance the time by a number of seconds. | IAnimatable

Method Detail

advanceTime | () | method

`public function advanceTime(time:Number):void`

Advance the time by a number of seconds.

Parameters

| `time:Number` — in seconds.

Thu Jan 16 2014, 01:11 PM +08:00