Jamie - just to add I've been able to get the Flash module working on my test Moodle setup, as the others above have been able to. I also noticed that it uses an adapted version of PHPObject from Ghostwire studios. This is great - I use Sunny's components - they are marvellous - so it is really good to see quality coding being used.
Anyway, what I'm now trying to do is to get the Multi-choice generator send the final scores / marks to Moodle.
Your excellent Flash module communicates with Moodle to get the question data and to check whether the answer is correct or not. As my multi-choice generator does all this internally i.e. all the question data, answer checking etc. etc. is done within the .swf - it doesn't need to communicate with Moodle that much.
Thus, I'm concluding that all I need to do is send the finished result back to Moodle, telling the database what the result was i.e. "User has got 8 / 10" etc. etc.
In future developments, where I will release further free games and quizzes I can change the way the games and quizzes work, so the question data can be called and checked externally to Flash, but currently I really like the fact it is all integrated.
So - having looked through the coding and the examples, am I correct to suggest that I need to add the following into the multi-choice code:
1. Either use the preloader or add the actionscript and classes specificied on http://jamiep.org/mod/wiki/view.php?id=145...gs+for+yourself
2. Let the .swf continue as normal - user takes the quiz and the result is reached - e.g. user gets 8 / 10.
3. Then get the .swf to send the result to Moodle.
This final section is where I'm getting a bit stuck.
I've found all the code you mention on http://jamiep.org/mod/wiki/view.php?id=145...des+and+Answers
. I'm thinking that to send just the result to Moodle I need to make use of:
All the other actionscript on the above page refers to checking correct answers and then calling functions within the actual Flash movie. However, can you let me know the best way to simply send the result to Moodle?
In the php communication I've done in the past it has been a simple matter and sending the php command via a getURL. I don't think this should be too tricky, but then again....
In return for your assistance with all this - which I and many others here will be extremely grateful for - I am, of course, more than happy for this free program to form part of an add-in to the Flash module. As mentioned above too, if I can get it working, we can very easily adapt the other free quizzes that I'll release to fit in much more closely with the Flash module - i.e. allowing users to setup their own questions and answers via .php / .xml. I'd also be delighted to use my experience to help setup some form of user-friendly generator screen, meaning teachers avoid having to edit code directly.