Lingo Dictionary > L-N > mostRecentCuePoint

 

mostRecentCuePoint

Syntax

sprite(whichSprite).mostRecentCuePoint
the mostRecentCuePoint of sprite whichSprite
sound(channelNum).mostRecentCuePoint
the mostRecentCuePoint of sound channelNum

Description

Cast member, sound channel, and sprite property; for sound cast members, QuickTime digital video, and Xtras 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.

For sound channels, the return value is for the sound cast member currently playing in the sound channel.

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:

put sprite(1).mostRecentCuePoint

Example

This statement returns the ordinal number of the most recently passed cue point in the currently playing sound in sound channel 2:

put sound(2).mostRecentCuePoint

See also

cuePointNames, isPastCuePoint()