Recognizes the sound and cue points in Sound Channel 2.
Film Loops and rollovers will still play as opposed to the tempo channel"s built in Wait for Cue Point.
--Written May 1999
--Modified May,24 1999 (added support to wait for END of sound)
--Far superior to Director's built in wait features.
--They kill interactivity (rollovers, animation, film loops) until the cue has been reached.
--All interactivity is maintained with the Sound 2 CuePoint Behavior.
property whichCuePoint --holds the selected cuePoint name or number
property goFrame --flag for going to a frame after cuePassed
property whichFrame --holds selected number of frames to add to current frame to go to
property goMarker --flag for going to a marker after cuePassed
property whichMarker --holds selected marker to go to after cuePassed
on exitFrame me
if whichCuePoint = "{End}" then
if soundBusy(2) then go the frame
else
if goMarker then
go to frame whichMarker
else
go to the frame + whichFrame
end if
end if
else
if isPastCuePoint (sound 2, whichCuePoint) then
if goMarker then
go to frame whichMarker
else
go to the frame + whichFrame
end if
end if
end if
go the frame
end
on getPropertyDescriptionList me
set mySound = the frameSound2 --the memberNumber of the sound in the sound channel
if mySound = 0 then
alert "This behavior requires a sound in channel 2."
exit
else
set theCues = the cuePointNames of member mySound --putting cues into a list to pass
end if