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