Using the XML Drop Down Menu tutorial here on kirupa, I am trying to develop an audio player from it but am reaching some roadblocks.
http://www.estevancarlos.com/xml_menu_audio.htm
Only one mp3 is uploaded at the moment and should correspond with the first selection: film instrumentals -> NIN (just random things I threw together)
I have a trace statement that corresponds when the function that loads a sound is activated. It displays as well as a trace of the file location of the mp3 but no audio is played (excluding the mouseover and hit sounds). No music is played.
Actions.playAudio = function(song) {
trace(song);
_root.playSong(song);
}
var songToPlay:Sound = new Sound();
function playSong(song:String){
trace("test");
_root.songToPlay.loadSound("song", true);
_root.songToPlay.start();
}
Obviously I’m doing something wrong. Any advice? The files are listed below.
http://www.estevancarlos.com/xmlmenu_audio2.fla
http://www.estevancarlos.com/menu2.xml