I have a main file, index.swf which loads audioPanel.swf. In audioPanel, i have about 12 songs each about 250KB average in size (mp3s). I exported each symbol in the library.
So I guess I have two questions/problems:
Right now, index.swf finishes loading quickly, but I don’t hear any music when I play my animation because it is taking forever to load audioPanel.swf. I want music to start playing immediately. I know with streaming sounds they do, but how do I do it in my case?
Since I exported each song (so I could do: attachSound and whatnot), how do I make them streaming now? Or is there something better to do?
Looping sounds that are supposed to stream is not a good idea since then wont loop tight.
To loop sounds neat, you should cut em well in any sound editing proggy (i use Sony SoundForge 7.0, Adobe Audition aka Cool Edit works fine as well).
Then about the event sound, you have to understand the sound needs to stay small as it needs to load completely to play, where a streaming file starts on how you set the soundbuffertime (default = 5 i think) and size doesnt really matter.
Anyways to answer your question,
you could use this piece of code to make a sound loaded with loadSound loop:
s = new Sound();
s.loadSound("yourmp3file.mp3", true);
s.start();
s.onSoundComplete = function() {
s.start();
}
the onSoundComplete function will make the sound start again once it is stopped
Try to fiddle around with the sound class, itll give you all kinda neat ideas im sure.