Groups | Blog | Home
all groups > flash actionscript > march 2007 >

flash actionscript : XML FLV player


rfkrocktk
3/12/2007 9:50:13 PM
[Q]1000: Unable to make connection to server or to find FLV on server[/Q]
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:
[q]
<?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>[/q]
Flash:
[q]
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");

[/q]

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
winkinc14
5/30/2007 3:52:24 AM
Hi,
I'm having the same issue. Were you able to get this resolved? If so, please let me know the solution.

AddThis Social Bookmark Button