Alright guys, I have been researching the ExternalInterface for the past couple of days, and I think it would really be good for what I'm trying to do with a project of mine.

In this project, the user reads information about a subject, then is quizzed at the end. The quiz is made in flash, and works 100% fine (it imports an XML file and then builds itself accordingly). However, the way I'm doing it now, I would have to compile a new flash movie to reference each XML file, and obviously that is a waste of time. On the quiz pages, I want to make javascript code that will, upon loading of the page, call that function in the flash movie to load the XML file that has the questions about the section. How can I do this? I am lost as to:

1) Where to put the Javascript
2) How to get the callBack to work (I know you can make a function external with the line ExternalInterface.callBack("myFuncForJava",null,fl ashFunction), but I do not know how to get JavaScript to reference my flash movie)

Any help on this would be MUCH appreciated. Thanks in advance