PDA

View Full Version : flash xml


utsav
09-25-2008, 03:13 AM
Well i am sorry if i posted in the wrong segment.

I have been to quite a few lazy forums (No one answers my query), Hope this one is not like those. Well heres my problem.
I am making a flv player that takes the video name from xml and plays it. I loaded the xml file and got the filename. and stored it to variable "movie" (w/o the qoutes). Now when i pass the variable to my players content path like my_contentpath = movie; It doesnot play.
But when i do this movie = "a.flv"; and my_contentpath = movie;. It plays. The problem according to me is the quotes (" "). If i wrap the file name with quotes it plays. What am i doing wrong? Please help me..

atomic
09-25-2008, 03:41 AM
Did you defined the movie variable as a string?

What outputs if you trace movie after reading the .xml?

Does the name in the xml, include the .flv extension?

If so, have you tried it without the extension in the .xml, and then add the extension to your line...

my_contentpath = movie+".flv";

Maybe you should attach or provide a link to your .fla and .xml file...

utsav
09-27-2008, 05:15 PM
aahhh well i'll give it a try and let u know