Load AS2 swf, pass it root variable

Hello all,

I am creating an AS3 program, but unfortunately I need to load some legacy SWF files that I can’t alter. These old files are dynamic charts, and each one is fed an XML file with it’s data.

The original implementation had these chart files on HTML pages, and each one was given it’s datafile URL on the query string, like so:

<PARAM NAME=movie VALUE=“FC2MSColumn.swf?dataUrl=…/ChartXML/ideationbyage.xml”>

My problem is that I now need to load these same SWF files into my AS3 program, and somehow feed it this _root variable in the same way it would have gotten them in the original HTML implementation. I’m kind of stumped on how to accomplish this though.

Any pointer or tips would be greatly appreciated!