ExternalInterface troubles with callBack!
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.
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".
//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" --*/
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.
Hope I haven't confused the issue.
Best of luck!
Do you know how I could get this working The callBack that is.
Yes, there is one script you will need to reference. Info here: http://blog.deconcept.com/swfobject/
Originally Posted by Giblaz
Sounds like your developing a SCORM - Sharable Object Reference Model: http://download.macromedia.com/pub/s...rm_flashlo.pdf
Here info that should assist you with what you're looking to achieve:
Hope this helps.
Click Here to Expand Forum to Full Width
Poll by Flashkit.com