I have been trying to pass a variable to a SWF. From the research I have done it seems pretty straight forward, but I cannot seem to get it to work. I am wondering if it has something to do with the way the SWF is added to the HTML page. Would someone take a look at this for me? Thanks in advance.
<p><br />
<div id="mySwf" />
<script type="text/javascript">
loadSwfToDiv("lesson_11/images/0301_objectives.swf?xml_file=lesson_11/images/0301_objectives.xml", "mySwf", 800, 600)
</script>
</p>
var xmlFileToLoad:String;
this.loaderInfo.addEventListener(Event.COMPLETE, loaderComplete);
function loaderComplete(myEvent:Event)
{
var myQueryStrings=this.loaderInfo.parameters;
xmlFileToLoad = myQueryStrings.xml_file;
trace(myQueryStrings);
}
var myQueryStrings = this.loaderInfo.parameters;
var myOtherMovie:String = myQueryStrings.movieToLoad;