Now that I have learned how to pass values to a SWF object via flashvars , could you please advise me how I can pass values from a query string to javascript?
What I mean? In the following example, I hard code the xml file to load into the SWF object.
<script type="text/javascript">
var so = new SWFObject("preview.swf", "", "100%", "100%", "9", "#ffffff");
so.addParam("allowFullScreen", "true");
so.addParam("scale", "noscale");
so.addParam("menu", "false");
so.addVariable("xmlPath", "xml/exampleData.xml");
so.write("flashcontent");
</script>
Since the Xml file is created dynamically, xml must be loaded from the value of the query string. (I think).
Suppose my url is http://www.example.com/load.aspx?XmlFile=SomeData
How can I pass it to the javascript side? How..
so.addVariable("xmlPath", "xml/<% SomeData %>.xml");
or whatever he needs to get it to work.
The UPDATE: . Besides the above example, is there a way to create JavaScript on the server side?