# \[AS2\] Assigning mutiple flv's to a single description node in an xml playlist

**URL:** <https://forum.kirupa.com/t/as2-assigning-mutiple-flvs-to-a-single-description-node-in-an-xml-playlist/230633>\
**Category:** flash\
**Created:** [June 27, 2007, 8:13pm UTC](https://forum.kirupa.com/t/as2-assigning-mutiple-flvs-to-a-single-description-node-in-an-xml-playlist/230633 "2007-06-27T20:13:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkelson](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@bkelson](https://forum.kirupa.com/u/bkelson)\
**Post date:** [June 27, 2007, 8:13pm UTC](https://forum.kirupa.com/t/as2-assigning-mutiple-flvs-to-a-single-description-node-in-an-xml-playlist/230633/1 "2007-06-27T20:13:14Z")

</div>

Does anyone have some advice for me? I have been able to successfully build an xml video player that can play videos that all have a unique description attribute but I would like to have the user click on a title and it play through multiple videos while that one title is highlighted. Here is the code that I have so far:

var xml:XML = new XML();  
xml.ignoreWhite = true;

xml.onLoad = function() {  
var nodes = this.firstChild.childNodes;  
for(i=0;i\<nodes.length;i++) {  
list.addItem(nodes\*.attributes.desc,nodes\*.attributes.flv);  
}  
vid.play(list.getItemAt(0).data);  
list.selectedIndex = 0;  
}

xml.load(“engvideos2.xml”);

var lList:Object = new Object();  
lList.change = function() {  
vid.play(list.getItemAt(list.selectedIndex).data);  
count = list.selectedIndex;  
}  
list.addEventListener(“change”,lList);

var vidList:Object = new Object();

var count:Number = 0;

vidList.complete = function() {  
count++;  
vid.play(list.getItemAt(count).data);  
list.selectedIndex = count;  
}  
vid.addEventListener(“complete”,vidList);

Can anyone help?

Thanks,

Brian Kelson
