I've run into a problem with my audio streaming application.
I tried to add a function to the event onSoundComplete, but nothing
happens when the song finishes.
I have a Sound s.
s.onSoundComplete = playSong;
The function playSong works, because the other things that
call playSong actually start the song, and if I click my "Next"
button, it goes to the next song and plays. It just doesn't seem to
fire when the song is over.
As always seems to happen for me, as I posted my code, I
found what was wrong with it. In my playSong function, I was saying
s = new Sound(); without reasigning the handler for the event. I
just didn't see it until right after I posted my code.