Chapter 19
504
Bones player commands
Use these commands to work with bones animations:
Bones player properties
Use these properties to work with bones animations:
Command
Description
Returns
whichModel
.bonesPlayer.
play(
“name”, looped, startTime, endTime,
playRate
)
Plays the motion named
name
starting at the
time
timeOffset
, 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.
StartTime
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 it's total duration as the currently
playing motion is to it's 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
bonesPlayer.playRate
property.
If blending is enabled, blending begins the
instant
play()
is called.
Nothing
whichModel
.bonesPlayer.
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
.bonesPlayer.
queue(
“name”, looped, startTime, endTime,
playRate
)
Adds the specified motion to the end of the
play list. The parameters are same as those for
the
play()
command.
Nothing
whichModel
.bonesPlayer.
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
.bonesPlayer.
pause()
Pauses the Bones player.
Nothing
Property
Access
Description
Default
whichModel
.bonesPla
yer.playing
Get
TRUE (1)
= playing;
FALSE (0)
= paused.
TRUE (1)
whichModel
.
bonesPlayer.
playList
Get
A linear list of property lists, where each
property list yields the parameters for the
currently playing and queued animations. For
example,
[[#name: "Walk_rt_turn",
#loop: 0, #startTime: 0,
#endTime: 4000, #scale:
1.0000], [#name: "Walk", #loop:
1, #startTime: 0, #endTime: -1,
#scale: 1.0000]]
.
Empty list []
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...