Hi,
I have a little Flash 8 FLVPlayback-based video player, designed to read a list of video URLs (pointing to a demo version of FMS 3.5) from XML. The player works the first couple of times you select a video but then stops displaying anything when you select more videos. The seek bar seems to move but there is not picture or sound. You can see it here:
http://www.students2.arts.gla.ac.uk/~matt/video/test.html
My ActionScript is as follows:
var vidList:XML = new XML();
vidList.ignoreWhite = true;
vidList.onLoad = function() {
//populate array from XML
var videoArray:Array = this.firstChild.childNodes;
//iterate array and add videos to the listbox
for (var i = 0; i<videoArray.length; i++) {
videoList.addItem(videoArray*.attributes.desc, videoArray*.attributes.url);
}
//XML loaded, so play first video
myPlayer.play(videoList.getItemAt(0).data);
textUrl.text = videoList.getItemAt(0).data;
videoList.selectedIndex = 0;
};
var vidListener:Object = new Object();
vidListener.change = function() {
myPlayer.play(videoList.getItemAt(videoList.selectedIndex).data);
textUrl.text = videoList.getItemAt(videoList.selectedIndex).data;
};
videoList.addEventListener("change", vidListener);
vidList.load("videos.xml");
Can anybody help!?
Thanks!