Search code examples
flashactionscript-3actionscriptflashvars

flashvars help, dymanically load an XML file


Hay, i have a flash movie which loads a static XML file, the script for this looks like

list = "list.xml";
var listXml:XML = new XML();
listXml.ignoreWhite = true;
listXml.load(list);

I want to be able to change this 'list' variable dynamically, perhaps using flashVars.

like this

 var flashvars = {
    xmlpath: "list.xml"
};

Any idea's how to go about doing this?


Solution

  • http://www.actionscript.org/forums/showthread.php3?t=185370

    AS3 Pass FlashVars to loaded swf

    if you have some code already, please share, so we could advice you