API Documentation for: 2.3.1
Show:

AnimatorTimeline Class

Defined in: AnimatorTimeline:8
Namespace: cloudkid

Animator Timeline is a class designed to provide base animation functionality

Constructor

AnimatorTimeline

()

Defined in AnimatorTimeline:8

Properties

_paused

Bool private

Defined in _paused:91

If the timeline is paused.

duration

Number public

Defined in duration:126

The animation duration in seconds.

event

String

Defined in event:34

The event label

firstFrame

Int

Defined in firstFrame:48

The frame number of the first frame

instance

AnimatorTimeline

Defined in instance:41

The instance of the timeline to animate

isLastFrame

Bool

Defined in isLastFrame:69

Ensure we show the last frame before looping

isLooping

Bool

Defined in isLooping:62

If the animation loops - determined by looking to see if it ends in " stop" or " loop"

lastFrame

Int

Defined in lastFrame:55

The frame number of the last frame

length

Int

Defined in length:76

length of timeline in frames

onCompleteParams

Array

Defined in onCompleteParams:27

The parameters to pass when completed

paused

Bool public

Defined in paused:99

Sets and gets the animation's paused status.

playSound

Bool public

Defined in playSound:156

If the timeline will, but has yet to play a sound.

soundAlias

String public

Defined in soundAlias:144

Sound alias to sync to during the animation.

soundEnd

Number public

Defined in soundEnd:168

The time (seconds) into the animation that the sound ends

soundInst

Object public

Defined in soundInst:150

A sound instance object from cloudkid.Sound or cloudkid.Audio, used for tracking sound position.

soundStart

Number public

Defined in soundStart:162

The time (seconds) into the animation that the sound starts.

speed

Number public

Defined in speed:132

The animation speed. Default is 1.

startTime

Number public

Defined in startTime:120

The animation start time in seconds on the movieclip's timeline.

time

Number public

Defined in time:138

The position of the animation in seconds.

useCaptions

Bool

Defined in useCaptions:83

If this timeline plays captions

Events

onComplete

Defined in onComplete:20

The event to callback when we're done