# Xml-sound-listbox issues

**URL:** <https://forum.kirupa.com/t/xml-sound-listbox-issues/120841>\
**Category:** Uncategorized\
**Created:** [August 27, 2004, 8:01pm UTC](https://forum.kirupa.com/t/xml-sound-listbox-issues/120841 "2004-08-27T20:01:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonesin](https://avatars.discourse-cdn.com/v4/letter/j/ec9cab/32.png) [@jonesin](https://forum.kirupa.com/u/jonesin)\
**Post date:** [August 27, 2004, 8:01pm UTC](https://forum.kirupa.com/t/xml-sound-listbox-issues/120841/1 "2004-08-27T20:01:16Z")

</div>

I get this error when I select an item in my listBox:

```php

Error opening URL "file:///C|/Documents%20and%20Settings/adam/Desktop/Working%20file%20browse%20%2B%20xml/undefined"

```

that url is the location of my swf file and xml doc, but not the location of my songs, which are defined in the xml doc, which looks like this:

```php

<song><songName>Dave Brubek - Take Five.mp3</songName><songLocation>C:\Documents and Settings\adam\My Documents\My Music\Dave Brubek - Take Five.mp3</songLocation></song>

```

this is what I have in actionscript:

```php

function getPlaylist() {
var playlist:XML = new XML();
playlist.ignoreWhite = true;
playlist.load("playlist2.xml");
playlist.onLoad = function() {
//trace("Loaded");
var baseNode = this.childNodes;
var sLabel, sData;
for (i=0; i<baseNode.length; i++) {
sLabel = baseNode*.firstChild.firstChild.nodeValue;
sData = baseNode*.firstChild.nextSibling.firstChild.nodeValue;
//trace(baseNode*.firstChild.nextSibling.firstChild.nodeValue);
//songlist_lb.addItem({label: sLabel, data: sData});
songlist_lb.addItem({label:sData,data:sLabel});
}
}
}
 
myselection = new Object();
myselection.change = function(ListEvent){
volume = 100;
var theSong = songList_lb.getSelectedItem().data;
mySongs = new Sound ();
mySongs.loadSound (theSong, true);
mySongs.setVolume (volume);
}
songlist_lb.addEventListener("change",myselection);

```

Any idea’s why this is happening ?? Im clueless as to why Im getting this error…
