How I can load flv player movie to my flash+xml site?

I want load flv player file to the text field of template

Page 1 of 1

0 Replies - 1167 Views - Last Post: 09 December 2009 - 04:17 AM

#1 Guest_toondra*


Reputation:

How I can load flv player movie to my flash+xml site?

Post icon  Posted 09 December 2009 - 04:17 AM

Hi,

I have a flash+xml template flash+xml template

As you see in first panel AboutUs page with text
I want midfy it a little - I have a ready flash palyer and want change uploaded text to flv player movie (file preview.swf in the same folder)

Of course I need everything works tha same as default (when I'll click to close button - clear window with flv player, stop video and sound in flv player)

Now Aboutus text is loading to "Box1" movie clip in the text field "details_txt".
here you can see full AS code for xml text loading

//Load XML
//text instance name - details_txt
details_txt.html = true;
details_txt.wordWrap = true;
details_txt.multiline = true;
my_xml = new XML();
//XML file and path
my_xml.load("aboutus2.xml");
my_xml.onload = my_function;
my_xml.ignoreWhite = true;
function my_function() {
	//text instance name - details_txt - can handle HTML tags
	details_txt.htmlText = my_xml.firstChild.childNodes[0].firstChild.nodeValue;
}


Code of text xml file

<?xml version="1.0" encoding="windows-1251" standalone="yes"?>
<item>
		 <item><![CDATA[<b><font size="50" color="#ffffff">Кто</font></b><font size="50" color="#FFCC00">Я?</font><br><font size="10" color="#999999">
Here just some text.Here just some text.Here just some text.Here just some text.Here just some text.Here just some text.Here just some text.Here just some text.
</font></item>
</item>


how change default code? I don't need text here. I need here flv player (I have it as preview.sf file)

I've tried edit XML code (add preview.swf to content)
and tried edeit AS in FLA source file. But it doesent work...

I'm not a programmer. I'm an animator. And AS is hard for me.. Can somebody help me make this changes?

Is This A Good Question/Topic? 0

Page 1 of 1