Build a Simple Flash MP3 Player in AS2
Tuesday, January 6th, 2009Making a MP3 player is really simple using Flash and AS2. First open up an FLA in Actionscript 2.0 format. In the first frame, open the actions window and write:
var simple_mp3:Sound = new Sound();
simple_mp3.loadSound( ‘example.mp3’, true );
Here we’re loading the MP3 ‘example.mp3’. The second variable in loadSound() is whether to stream the media. If you would like to wait until the MP3 loads completely, just set this to false.