PDA

View Full Version : how do i tell when a sound is done?


BCSA #13
10-29-2002, 10:01 PM
i recorded myself saying a word or two in khmer.. so that when users click on individual words or phrases (buttons) it plays the pronounciation of the word/phrase..

i also want to be able to put a button that will allow the user to hear the whole story to be read to him/her..

so i want to go through a loop and play all the sounds files in order right?.. and if i do so.. how do i know when the first file has finished in order to play the second and so on?..

i don't want to have to incorporate any more sound files..

thanks in advance..

Sereywath Keng

Billy T
10-29-2002, 10:29 PM
using MX? If so, use onSoundComplete

cheers

BCSA #13
10-30-2002, 12:20 AM
oh.. don't have MX at my disposal.. is there someway in flash 5?

thanks..

Billy T
10-30-2002, 12:34 AM
not really

you could put each sound in an mc, set it to stream and then put an action on the frame at the end of the sound...

cheers

BCSA #13
10-30-2002, 12:41 AM
oh thanks.. i kinda get it now..

how about this one.. i have the sound inserted at the down portion of the button.. so that it plays the sound when u press down..

but here's the problem.. if the sound is not done yet.. and u press on another button.. another sound will play.. and both will overlap each other..

if i have the sound inserted as an MC.. will this solve the problem?.. cuz i can test to see if the MC is completed.. or do am i headed the wrong way?

thanks again..

Billy T
10-30-2002, 06:16 AM
nah better to put the sounds and buttons into an mc

to stop them overlapping put a stopAllSounds() action before you trigger any sound

cheers