The interface to implement for receiving TrackEntry events. It is always safe to call AnimationState methods when receiving events.

See TrackEntry.listener and AnimationState.addListener.

Methods

complete(entry:TrackEntry):Void

Invoked every time this entry's animation completes a loop.

dispose(entry:TrackEntry):Void

Invoked when this entry will be disposed. This may occur without the entry ever being set as the current entry. References to the entry should not be kept after dispose is called, as it may be destroyed or reused.

end(entry:TrackEntry):Void

Invoked when this entry is no longer the current entry and will never be applied again.

event(entry:TrackEntry, event:Event):Void

Invoked when this entry's animation triggers an event.

interrupt(entry:TrackEntry):Void

Invoked when another entry has replaced this entry as the current entry. This entry may continue being applied for mixing.

start(entry:TrackEntry):Void

Invoked when this entry has been set as the current entry.