Hi guys,

I have a flash based animation that calling link items via an external XML file (links.xml) which works fine. However I have been asked to allow the ability to change the xml location by passing the filename as a variable which can be changed in the html by flashvars.

The code that calls my links.xml file inside flash is as shown:
links_xml = new XML();
links_xml.ignoreWhite = true;
links_xml.load("links.xml");
links_xml.onLoad = function(success) {
.... etc

I was planning to change the "links.xml" to a variable and then in the HTML having code such as:

<script type="text/javascript">
var so = new SWFObject("site/content/flash/links.swf", "mymovie", "350", "216", "8", "#E0DBCB");
so.addVariable("variable1", getQueryParamValue("variable1"));
so.addVariable("variable2", getQueryParamValue("variable2"));
so.addParam("FlashVars", "xmlfile=http://www.website.com/location/links.xml");
so.write("flashcontent");
</script>

But this does not work. Does anyone have any suggestions how to get this working? My knowledge of AS does not go that far and i am using AS2 for this