Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

XML FLV player

Community Beginner ,
Mar 12, 2007 Mar 12, 2007
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:
quote:


<?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:
quote:


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 .attributes.desc, videos.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
TOPICS
ActionScript
329
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 29, 2007 May 29, 2007
LATEST
Hi,
I'm having the same issue. Were you able to get this resolved? If so, please let me know the solution.

Thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines