Playing Sound Clips
Geoff Canyon
gcanyon at inspiredlogic.com
Tue Jan 29 14:29:01 EST 2002
At 1:46 PM -0500 1/29/02, Mike Brown wrote:
>Could you provide an example of how the playStopped message can be properly
>implemented? I have looked through the documentation but can not find a
>practical example of how to use it.
I would think (not tested) something like this:
global gSoundFileList,gWhichFile,gNumSoundFiles
on startPlaying
put 1 into gWhichFile
startNewSound
end startPlaying
on startNewSound
play audioClip gSoundFileList[gWhichFile]
end startNewSound
on playStopped
add 1 to gWhichFile
if gWhichFile > gNumSoundFiles then exit playStopped
startNewSound
end playStopped
regards,
Geoff
More information about the use-livecode
mailing list