0
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/td-p/983509
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Hi,
I need to create an XML driven flv player, now I know how to construct the player, but not sure of the code for the XML to hold just one flv file, not a list of them just the one.
I need my flv player to play just one flv file; as soon as its run on the web, it needs to play only one flv video. No need to pick it from any list etc... This way the client can simply edit the XML file to play a different flv video.
Kind Regards,
Boxing Boom
I need to create an XML driven flv player, now I know how to construct the player, but not sure of the code for the XML to hold just one flv file, not a list of them just the one.
I need my flv player to play just one flv file; as soon as its run on the web, it needs to play only one flv video. No need to pick it from any list etc... This way the client can simply edit the XML file to play a different flv video.
Kind Regards,
Boxing Boom
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer

Feb 05, 2008
Feb 05, 2008
ok this works for me.
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983510#M26843
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
In this case you can simply use a text file, with the
following code. In the file you can simply put the following:
vidLocation=test.flv
vidLocation=test.flv
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983511#M26844
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Hi,
Yeah, but I thought I had to have an XML file? And also, how do I instruct the flv playback for example to play the flv? Would it be like the following:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("vidLocation");
I would prefer to make my own video player, interface and play buttons etc...
Is there a difference in using and .txt file above using a .xml file for this situation?
Thank you for your time and consideration.
Kind Regards,
Boxing Boom
Yeah, but I thought I had to have an XML file? And also, how do I instruct the flv playback for example to play the flv? Would it be like the following:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("vidLocation");
I would prefer to make my own video player, interface and play buttons etc...
Is there a difference in using and .txt file above using a .xml file for this situation?
Thank you for your time and consideration.
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983512#M26845
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Why not its own analysis of XML? Even if it is in line with
the norms can also search out flv filename..
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983513#M26846
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Hi,
Sorry, but can you better explain what u mean Weiweiok.
Kind Regards,
Boxing Boom
Sorry, but can you better explain what u mean Weiweiok.
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983514#M26847
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Hi All,
Know one know the answer! I am using Flash CS3 and would really need code to work in ActionScript 3 ;)
Kind Regards,
Boxing Boom
Know one know the answer! I am using Flash CS3 and would really need code to work in ActionScript 3 ;)
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983515#M26848
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Hi
Come on guys need help here!
Kind Regards,
Boxing Boom
Come on guys need help here!
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983516#M26849
Feb 04, 2008
Feb 04, 2008
Copy link to clipboard
Copied
Attached is example code to load vid using an xml file and
play in FLVPlayback component with instance name of flvPlay.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983517#M26850
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Hi James,
I am getting the following syntax error:
1093: Syntax error. loader.load(new URLRequest(“content.xml”));
Is this down to URLRequest not working on local machine, does the path have to me on a server?
Kind Regards,
Boxing Boom
I am getting the following syntax error:
1093: Syntax error. loader.load(new URLRequest(“content.xml”));
Is this down to URLRequest not working on local machine, does the path have to me on a server?
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983518#M26851
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Boxing Boom.
Make sure the xml file is in the same directory as the swf, or else change the URLRequest statement to point it to the directory the xml file is stored in.
Barry.
Make sure the xml file is in the same directory as the swf, or else change the URLRequest statement to point it to the directory the xml file is stored in.
Barry.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983519#M26852
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Hi,
The first error above was caused by "" these guys, the quote marks. With this now fixed, I am getting this error,
Error 1119: flvPlay.source = XML(e.target.data).vidURL.text(); Undefined property source
Kind Regards,
Boxing Boom
The first error above was caused by "" these guys, the quote marks. With this now fixed, I am getting this error,
Error 1119: flvPlay.source = XML(e.target.data).vidURL.text(); Undefined property source
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983520#M26853
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Paste your code as it is now so I can have a look.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983521#M26854
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Hi Barry,
Please find the code attached:
Please find the code attached:
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983530#M26863
Feb 26, 2008
Feb 26, 2008
Copy link to clipboard
Copied
Boxing Boom,
You are correct about error AS3 Error #1093 being because of the quotes. The unfortunate thing is that this error doesn't give any further info. I have created a blog post specifically about error ActionScript Error #1093 There are a few other reasons that a Flasher will get this error. Hope this is helpful.
Curtis J. Morley
You are correct about error AS3 Error #1093 being because of the quotes. The unfortunate thing is that this error doesn't give any further info. I have created a blog post specifically about error ActionScript Error #1093 There are a few other reasons that a Flasher will get this error. Hope this is helpful.

Curtis J. Morley
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983522#M26855
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
what is flvPlay? where are you referencing it?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983523#M26856
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Hi,
Its the instance name given to the flvPlayback component. Done through library, new video etc....
Kind Regards,
Boxing Boom
Its the instance name given to the flvPlayback component. Done through library, new video etc....
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983524#M26857
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
ok this works for me.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983525#M26858
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Hi Barry,
It doesn't work yet for me? What way have you set up the flvPlayback component?
Kind Regards,
Boxing Boom
It doesn't work yet for me? What way have you set up the flvPlayback component?
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983526#M26859
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Barry,
Can you email me the fla and xml files, just to have a butchers.
Email me on it_trainer1@btinternet.com
Kind Regards,
Boxing Boom
Can you email me the fla and xml files, just to have a butchers.
Email me on it_trainer1@btinternet.com
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983527#M26860
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
thats all there is to it. The flvPlayer has an instance name
of flvPlay.
make sure the content.xml is in single not double qoutes.
Barry.
make sure the content.xml is in single not double qoutes.
Barry.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/animate-discussions/xml-driven-flv-player/m-p/983528#M26861
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
actually i lie the single / double qoutes doesnt make a
difference.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Boxing_Boom
AUTHOR
Engaged
,
/t5/animate-discussions/xml-driven-flv-player/m-p/983529#M26862
Feb 05, 2008
Feb 05, 2008
Copy link to clipboard
Copied
Barry,
I must be doing something wrong, can you email me the files, please.
it_trainer1@btinternet.com
Kind Regards,
Boxing Boom
I must be doing something wrong, can you email me the files, please.
it_trainer1@btinternet.com
Kind Regards,
Boxing Boom
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/animate-discussions/xml-driven-flv-player/m-p/983531#M26864
Jul 16, 2008
Jul 16, 2008
Copy link to clipboard
Copied
See this cool mp3 xml player with visualization, playlist and
skins. Fully customisable. Vector.
http://flashden.net/item/mp3-xml-strongplayerstrong-with-visualization-and-skins-vectorised/11851
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

