This content has been marked as final. Show 5 replies
1. create an array of your sound files.
2. shuffle() your array (check this forum for the shuffle() method of arrays.
3. create a sound instance
4. load your first sound file from the shuffled array.
5. on load complete start playing your sound and load the next sound in another sound instance. in fact, it would probably be easiest to create a new sound instance for each load. you can kill sound instances after play is complete.
6. on play complete, start the play of the 2nd sound instance if loading of it is complete. otherwise, wait until loading is complete and then start play.
I see. thanks kglad.
so by doing what you mentioned above, would the song be interrupted if I
1) place the player in the main swf
2) user click on other sections of the swf.
no. nothing will stop that sequence once it starts unless you use actionscript to stip it or you unload the swf from the flash player.
ok. thanks again kglad.