This content has been marked as final. Show 6 replies
Could I simply load the questions as actionscript in another .SWF file?
Okay, if I use the loadVars to load name/value pairs from a text file can I use an array? and secondly is there an easy way to convert my text string into that format? I've used a url encode site but it seems like this would be an easier way.
myQuestion = "Is football a great sport?"
myAnswer = "Yes";
What I ment to say was it seems like there would be a betterway.
I have built quiz based applications using flash and 9 times out of 10 I pull in all the quiz data from an xml file. You can create the xml file pretty easily and fit it to your specific needs. So for a crude example look below:
Once you have the xml written you just need to load the xml into flash and then parse the data from each node into an array as you mentioned below. This aspect I have gone through in a tutorial on my blog using a playlist as an example, this could easily be rewritten for your need though, take a look!
Thanks, I've printed out your tutorial and I'm going to try to wrap my head around it. Let you know how it goes.
Cool, no probs...