
Animation modifiers
377
Keyframe player methods
Use these methods to work with keyframe animations:
Method
Description
Returns
whichModel
.keyframePlayer.play
("
name
"
, looped, startTime, endTime,
playRate, timeOffset
)
Plays the motion named
name
starting at
the time
startTime
, with the currently
playing motion being pushed down the
play list. If
looped
is
FALSE (0)
, the
preceding motion begins again when
this motion completes.
The
startTime
parameter can be an
integer number of milliseconds, or it can
be the symbol
#synchronized
. Use
#synchronized
to start this new motion
at the same relative time offset to its
total duration as the currently playing
motion is to its total duration. The
playRate
parameter indicates how fast
to play the motion. A value of 2 doubles
the speed of the motion. This value is
multiplied by the value of the
keyframePlayer.playRate
property.
If blending is enabled, blending begins
the instant
play()
is called.
Nothing
whichModel
.keyframePlayer.playNext()
Ends the currently playing motion,
removes it from the play list, and begins
the next motion.
If blending is enabled, blending begins
the instant
playNext()
is called.
Nothing
whichModel
.keyframePlayer.queue("
nam
e
"
, looped, startTime, endTime,
playRate, timeOffset
)
Adds the specified motion to the end of
the play list. The parameters are same as
those for the
play()
method.
Nothing
whichModel
.keyframePlayer.removeLast
()
Removes the most recently added
motion from the play list. The motion will
be removed from the play list even if it is
also the currently playing motion.
Nothing
whichModel
.keyframePlayer.pause()
Pauses the Keyframe player.
Nothing
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...