# XML Menu and MP3 Player

**URL:** <https://forum.kirupa.com/t/xml-menu-and-mp3-player/177465>\
**Category:** flash\
**Created:** [February 2, 2006, 3:35am UTC](https://forum.kirupa.com/t/xml-menu-and-mp3-player/177465 "2006-02-02T03:35:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![estevan\_carlos](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/estevan_carlos/32/1939_2.png) [@estevan\_carlos](https://forum.kirupa.com/u/estevan_carlos)\
**Post date:** [February 2, 2006, 3:35am UTC](https://forum.kirupa.com/t/xml-menu-and-mp3-player/177465/1 "2006-02-02T03:35:03Z")

</div>

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](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.

```auto
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/xmlmenu_audio2.fla)  
[http://www.estevancarlos.com/menu2.xml](http://www.estevancarlos.com/menu2.xml)
