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.
Any help on this would be MUCH appreciated. Thanks in advance
Why don't you just import a parameter that indicates which XML document to call (done from your swf embed)? This would require you to set up a series a variables in your swf equal to each subject matter.
So, lets say you have four subjects: Math, English, Science, and History. If your wanting to load the Math quiz, in your embed you would pass the parameter Math with a value of true.
//Using swfObject to embed you movie your embed would look like this -
var so = new SWFObject("Quize.swf", "", "430", "225", "8", "");
/*-- To activate quiz set subject to "True" --*/
Then in your swf just establish a variable URL and set a series of cases or else(if) statements for each subject. If Math is == true then make URL = math.xml. And finally, when you load your XML object, just replace your url string with the variable "URL".
You could define each subject variable in a separate xml document but if you're only dealing with 3 or 4 subjects, that might be a bit overkill.
Do you know how I could get this working The callBack that is.