I am setting up a video player with xml playlist using the flvplayback component. The xml playlist works fine, but when I click on a video in the list nothing happens. Im not sure what exactly is wrong. Heres my actionscript which is in frame 1.
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
vPlayer.attachVideo(ns);
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function() {
var videos:Array = this.firstChild.childNodes;
for (i=0;i<videos.length;i++) {
VideoList.addItem(videos[i].attributes.desc,videos[i].attributes.url);
}
ns.play(VideoList.getItemAt(0).data);
VideoList.selectedIndex = 0;
}
var vidList:Object = new Object();
vidList.change = function() {
ns.play(VideoList.getItemAt(VideoList.selectedIndex).data);
}
VideoList.addEventListener("change",vidList);
vlist.load("http://localhost/usab/video/videos.xml");
I have left contentPath for the flvplayback component blank but named the component instance vPlayer.
Lastly, this is a cosmetic question.
My xml is listed in a listbox. The mouse over and highlights are green. How do I change the colors to something better?