Class: AnimatorTimeline

AnimatorTimeline

Represents a single animation play.

Members

callback () => void readonly

Callback called when completed (non-looping animation).

end number readonly

Frame number of the ending frame.

instance MovieClip readonly

Instance of clip to play.

loop boolean readonly

true if the timeline is suppose to loop.

progress number

The progress from 0 to 1 of the playback.

start number readonly

Frame number of the starting farme.

Methods

AnimatorTimeline.create (instance, start, end, loop, callback) AnimatorTimeline static

Create a new timeline

Name Type Description
instance MovieClip
start number
end number
loop boolean
callback () => void
Returns:
Type Description
AnimatorTimeline

stop () void

Stop the animation, cannot be reused.