MP3s in Flash Mx 04
- Started
- Last post
- 4 Responses
- Curios
What is the best method to load MP3s in Flash?
I'm currently creating seperate swf for each song. And using the loadmovie.swf and loading it into a higher level above my other swf files.
The only thing I don't like about this method is I seem to lose sound quality.Can anyone else recommend a better method so that I don't lose sound quality?
- VonS0
Create an instance of the sound object and load your mp3 files into it as needed. To control sound quality, goto file->publish settings, select the Flash tab and select your desired settings in the Audio stream and Audio event parameters.
Here's the code:
//set up the sound object
var MySound:Sound = new Sound();
MySound.setVolume(80);//load mp3 and start the sound
MySound.loadSound("song1.mp3", true);Hope that helps,
VS
MySound.start.start();
- VonS0
last line should say:
mySound.start();sorry for the typo
- Curios0
eh Von, mind if i email you? i'm kind of confused.
thanks again.
- VonS0
sure - email me anytime