Is there a way to now if a sound is still playing?
Hi
I'm using varname.play() to play a sound (mp3)
But I need to stop my App until the sound finished of playing.. Anybody knows if there is a way to know if a sound complete to reproduce?
Thank you
Hi
I'm using varname.play() to play a sound (mp3)
But I need to stop my App until the sound finished of playing.. Anybody knows if there is a way to know if a sound complete to reproduce?
Thank you
Dear Chorrillanop23,
I am not sure I comprehend the delay you are speaking of. I have used this to like words to make phrases with no noticiable delay on iOS devices. I would recommend that you create multiple channels if you need to have more than one sound clip running at the same time. Just add
var channel1:SoundChannel;
var channel2:SoundChannel;
var channel3:SoundChannel;
channel1.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete1);
channel2.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete2);
channel3.addEventListener(Event.SOUND_COMPLETE, onPlaybackComplete3);
// Now just add the 3 functions.
Please help me understand better the delay you are speaking of. Could you create a small sample fla file that demonstrates this issue?
Grace & Peace!
jim
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.