Lingo Dictionary > A-C > on cuePassed |
![]() ![]() ![]() |
on cuePassed
Syntax
on cuePassed(
channelID
,
cuePointNumber
,
cuePointName
)
statement(s)
end
on cuePassed(me,channelID, cuePointNumber,cuePointName)
statement(s)
end
Description
System message and event handler; contains statements that run each time a sound or sprite passes a cue point in its media.
![]() |
|
![]() |
|
![]() |
|
![]() |
|
The message is passedin orderto sprite, cast member, frame, and movie scripts. For the sprite to receive the event, it must be the source of the sound, like a QuickTime movie or SWA cast member. Use the isPastCuePoint
property to check cues in behaviors on sprites that don't generate sounds.
Example
This handler placed in a Movie or Frame script reports any cue points in sound channel 1 to the Message window:
on cuePassed channel, number, name if (channel = #Sound1) then put "CuePoint" && number && "named" && name && "occurred in sound 1" end if end
See also
cuePointNames
, cuePointTimes
, isPastCuePoint(), mostRecentCuePoint
![]() ![]() ![]() |