User Guide
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.