// Action script
BTNstop.visible=false;
var song = new Sound();
song.loadSound("sound/song.mp3");
BTNplay.onRelease = function(){
this.visible=false;
song.start();
BTNstop.visible=true;
}
BTNstop.onRelease = function(){
this.visible=false;
song.stop();
BTNplay.visible=true;
}
you'll need a button called BTNplay and one called BTNstop
your sound should ben in the sound directory
/
|--myPlayer.swf
|--sound
|--song.mp3