when streamed sound starts playing, do something.... i can't get it to work!
hi.
i've tried and tried, been on kennybellew's site for a loooong time, but i just don't succeed! if anyone can help and give me a nudge forward, i'll be eternally grateful.
i'm loading sound using loadSound. previously, i have defined a function called playMusicians, which works ok: in another swf i have animation of musicians playing their instruments. so i would like them to start playing when the music can actually be heard. currently they start playing when the song starts loading, and it looks a bit silly for a while until the music plays... :confused:
i've tried numerous alternatives. underneath i show just one example out of many. using this, my musician animation never starts... can anyone help me?
if you wish to see what i mean, the example of my problem can be seen here
Code:
sound1 = new Sound ();
sound1.loadSound("musics/FirstSong.mp3", true);
if (sound1.playing==true){
playMusicians();
}