Topic: How to change xmlDataPath in SWF not HTML

I know we can add this to the html to change the xml path
fo.addVariable("xmlDataPath", "my_data/get_data.php");

but I want to do it in the SWF level, because I loaded the simple viewer in my main movie.

Thanx!

Re: How to change xmlDataPath in SWF not HTML

I'm trying to accomplish the same thing, so you're not alone out there. I'm loading swf files of multiple galleries into my main movie from sub-folders. My index file keeps looking for the xmldata doc in the main directory.

I'll be watching your thread closely.

Re: How to change xmlDataPath in SWF not HTML

see in the readme.txt file included with the source.

Re: How to change xmlDataPath in SWF not HTML

the readme redirects to the site, which only talks about how to customize data source via HTML, not when the simple viewer is loaded into a SWF.

Thanx anyhow!

Anybody else that can help us out?

Re: How to change xmlDataPath in SWF not HTML

From the readme that comes with the source code:

How can I dynamically set the path to the XMl file that is loaded?
-----------------------------------
The XML is loaded in a frame script of the "loaderHolder" symbol in the Library. You can overwrite the path to the loaded XML file by setting the '_root.xmlDataPath' variable.

Felix Turner
SimpleViewer Support Team.