XML FLV Player

Greetings,

I am trying to build a FLV player which parses XML to load corresponding flash video into my swf file. I have the list box and video player working together just fine, however I would like to populate a “video info” dynamic txt box on the screen - based on which listbox item the user selects.

Here is what I have so far for the XML:


 <?xml version="1.0" encoding="ISO-8859-1" ?>
<videos>
<video url="anyVid.flv" desc="This is anyVid1" info="this vid was taken last week" />
</videos>

As you can see, my “url” and “description” attributes apply directly to how the list box and flv will be set up, however it becomes aparent in my actionscript that I am unsure how to load the “info” attribute into the text box (as follows)


this.onEnterFrame = function(){
 _root.videoList.setStyle("selectionColor", 0xA2B8C1);
 _root.videoList.setStyle("rollOverColor", 0xA2B8C1);
 
 delete onEnterFrame;
}
var vidList:XML = new XML();
 
vidList.ignoreWhite = true;
vidList.onLoad = function() {
 
var videoArray:Array = this.firstChild.childNodes;
 
for (var i = 0; i<videoArray.length; i++) {
 
videoList.addItem(videoArray*.attributes.desc, videoArray*.attributes.url);
}
 
ns.play(videoList.getItemAt(0).data);
 
videoList.selectedIndex = 0;
};
 
var vidListener:Object = new Object();
vidListener.change = function() {
 
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
 
**var item = videoList.selectedItem;**
**var vidInfo = item.attributes.info;**
**if(vidInfo) {**
**info_txt.text = vidInfo;**
**}**
 
videoList.addEventListener("change", vidListener);
 
vidList.load("videos.xml");

Im essentially missing one little step some place, in the AS and its killing me!!! Please help!!! Thank you in advance!

–Bobby