Fires an Event when specific animation times are reached.

Constructor

new(frameCount:Int)

Variables

finalevents:Array<Event>

The event for each key frame.

finalframes:Array<Float>

The time in seconds for each key frame.

Methods

apply(skeleton:Skeleton, lastTime:Float, time:Float, firedEvents:Array<Event>, alpha:Float, blend:MixBlend, direction:MixDirection):Void

Fires events for frames > lastTime and <= time.

getFrameCount():Int

The number of key frames for this timeline.

setFrame(frameIndex:Int, event:Event):Void

Sets the time in seconds and the event for the specified key frame.