currentSpriteNum
715
currentLoopState
Usage
member(
whichCastmember
).model(
whichModel
).keyframePlayer.\
currentLoopState
member(
whichCastmember
).model(
whichModel
).bonesPlayer.\
currentLoopState
Description
3D
keyframePlayer
and
bonesPlayer
modifier property; indicates whether the motion being
executed by the model repeats continuously (
TRUE
) or plays to the end and is replaced by the next
motion in the modifier’s playlist (
FALSE
).
The default setting for this property is the value of the looped parameter of the
play()
command
that initiated playback of the motion, or the value of the
queue()
command that added the
motion to the modifier’s playlist. Changing the
currentLoopState
property also changes the
value of the
#looped
property of the motion’s entry in the modifier’s playlist.
Example
This statement causes the motion that is being executed by the model named Monster to repeat
continuously.
member("NewAlien").model("Monster").keyframePlayer.\
currentLoopState = TRUE
See also
loop (3D)
,
play() (3D)
,
queue() (3D)
,
playlist
currentSpriteNum
Usage
-- Lingo syntax
_player.currentSpriteNum
// JavaScript syntax
_player.currentSpriteNum;
Description
Player property; indicates the channel number of the sprite whose script is currently running.
Read-only.
This property is valid in behaviors and cast member scripts. When used in frame scripts or movie
scripts, the
currentSpriteNum
property’s value is 0.
The
currentSpriteNum
property is similar to the Sprite object’s
spriteNum
property.
Note:
This property was more useful during transitions from older movies to Director 6, when
behaviors were introduced. It allowed some behavior-like functionality without having to completely
rewrite script. It is not necessary when authoring with behaviors and is therefore less useful than in
the past.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...