Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-12-2007, 09:44 PM   #1
rfkrocktk
Registered User
 
Join Date: Dec 2006
Posts: 12
Default XMl Flv Player

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
rfkrocktk is offline   Reply With Quote
Old 03-27-2007, 01:43 AM   #2
dark_artist69
Registered User
 
Join Date: Mar 2007
Posts: 7
Default

I am no expert... but ns is already somthing in flash so it wont like you using it as somthing else.. too, you can get a good tutorial at www.gotoandlearn.com, great stuff there...
dark_artist69 is offline   Reply With Quote
Old 03-27-2007, 02:30 AM   #3
inhan
it's all about patience
 
inhan's Avatar
 
Join Date: Jun 2005
Location: istanbul
Posts: 6,696
Default

You have the same function in 2 timelines. Delete the one in the root (because the scope does not match) and with the one in videoPage, do nothing. You have an extra space at the instance name of your "videoList" component.

Just delete it and you're done
__________________
Ali Inhan
Turkish graphic and web designer
an Apple fan
www.aliinhan.com

Last edited by inhan; 03-27-2007 at 03:10 AM.
inhan is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proxus FLV Player and referencing FLV file in HTML (flashvar or ?) lotuscreative Components 2 02-12-2009 04:41 AM
flv player upgrading! brenton07 ActionScript 2.0 5 05-29-2007 04:44 PM
FLV Player Rewind Button mxcnstr02 ActionScript 2.0 0 03-09-2007 04:02 AM
Dynamic xml thumb image and flv viewer? anthonyp ActionScript 2.0 1 02-21-2007 08:04 PM
Action Script Video Player issues Nemui ActionScript 2.0 0 02-20-2007 06:20 PM


All times are GMT. The time now is 02:06 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.