User Guide
868 Chapter 14: Properties
Description
Sound channel and sprite property; for sound sprites, QuickTime digital video, and Xtra
extensions that support cue points, indicates the number that identifies the most recent cue point
passed in the sprite or sound. The value is the cue point’s ordinal number. If no cue points have
been passed, the value is 0.
Shockwave Audio (SWA) sounds can appear as sprites in sprite channels, but they play sound in a
sound channel. It is recommended that you refer to SWA sound sprites by their sprite channel
number rather than their sound channel number.
Example
This statement tells the Message window to display the number for the most recent cue point
passed in the sprite in sprite channel 1:
-- Lingo syntax
put sprite(1).mostRecentCuePoint
// JavaScript syntax
put(sprite(1).mostRecentCuePoint);
This statement returns the ordinal number of the most recently passed cue point in the currently
playing sound in sound channel 2:
-- Lingo syntax
put sound(2).mostRecentCuePoint
// JavaScript syntax
put(sound(2).mostRecentCuePoint);
See also
cuePointNames, isPastCuePoint(), cuePointTimes, on cuePassed
motion
Usage
member(whichCastmember).motion(whichMotion)
member(whichCastmember).motion[index]
member(whichCastmember).motion.count
Description
3D command; returns the motion found within the referenced cast member that has the name
specified by whichMotion, or is found at the index position specified by the index. As
motion.count, this property returns the total number of motions found within the cast member.
Object name string comparisons are not case-sensitive. The index position of a particular motion
may change when objects at lower index positions are deleted.
If no motion is found that uses the specified name or no motion is found at the specified index
position then this command returns void.
Example
thisMotion = member("3D World").motion("Wing Flap")
thisMotion = member("3D World").motion[7]
put member("scene").motion.count
-- 2