You can’t post a .swf file as an attachment. It doesn’t show. I learned that one the hard way too.
This is coming straight from a tutorial from Kirupa.
<B><U>Load .mp3 dynamically with Flash MX:</U></B>
It’s the same method. The commands change a bit, but the idea is similar : you create an instance of a sound object, in which you load the sound. This instance is what we will use to change the properties of the sound (volume for instance).
Here again, you can load dynamically sounds under a certain format, which happens to be MP3.
mySound = new Sound();
<B>mySound = new Sound();</B>
You create a new Sound object.
You load music.mp3 into mySound. The second parameter is call isStreaming. If it’s set to true, the sound will play while loading, whereas it will wait until it’s fully loaded before playing if isStreaming is set to false.
I hope this helps.
Here is a link to the tutorial… It is for MX, which I believe is the only version thus far that supports dynamically loaded mp3 and images.