Universal swf embed

Hello,

I am trying to create a “universal” swf that can be embedded in an html page and take input from an xml file. Yet the name of the xml file will not be coded into the swf which would allow xml files of various names to be used.

I know this is possible. The code below is from something I have seen in the past. Somehow this must forcefeed the xml file to the swf.

Any help would be greatly appreciated.


<script type="text/javascript">
  loadSwfToDiv("date/ipconfig_questions.swf", "ipconfig.xml", 800, 700)
 </script>