So I have my index page completed and have the music controls working perfectly with the mp3 linked. All I need now is to have the music start when the page opens but still allow the user the control to start & stop using the buttons provided. I’ve attached the .swf to get an idea of what’s going on. Also, below is my code for the sound. Any help is greatly appreciated.
Thank You,
Rob.
Sound control code:
var mcHolder:MovieClip = this.createEmptyMovieClip (
“mcHolder_1”);
var snd_1:Sound = new Sound(mcHolder);
snd_1.attachSound(“song”);
btPlay.onRelease = function() :Void {
snd_1.start();
};
btStop.onRelease = function() :Void {
snd_1.stop();
};