Quote:
|
1000: Unable to make connection to server or to find FLV on server
|
Hey all,
I'm trying to create a XML video player as per lee's tutorial on the site. However, no matter what, I'm always getting that error.
I have checked my source codes back and forth and my filepaths up and down and back again. In a brand new file, by just copying and pasting code and components, it works! but in my regular movie it doesn't! AHH!
Here are my code snippets:
ns = name of FLVPlayer component
videoList = name of List component
XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<videos>
<video url="TITLE01.flv" desc="Lala"/>
<video url="TITLE02.flv" desc="2"/>
<video url="TITLE03.flv" desc="3"/>
</videos>
Flash:
Code:
var vlist:XML = new XML();
vlist.ignoreWhite = true;
vlist.onLoad = function(success:Boolean) {
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.selectedItem = 0;
};
var vidList:Object = new Object();
vidList.change = function() {
ns.play(videoList.getItemAt(videoList.selectedIndex).data);
};
videoList.addEventListener("change", vidList);
vlist.load("videoTemplate.xml");
And because I really really need help for this, here's the link to the zip file containing everything if anyone will help me out here:
http://asilverknightsfire.com/example.zip