Talk:Flash module: Difference between revisions
From MoodleDocs
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
_root.finishButton.onRelease = function() { | _root.finishButton.onRelease = function() { | ||
endTime = getTimer() - startTime; | |||
moodleService.send_response(answers, endTime, score); | |||
moodleService.cleanUp(); | |||
} | } | ||
Revision as of 23:58, 13 January 2008
Hi, I'm new to Moodle but a fairly experienced ActionScript developer, both 20. and 3.0.
Looking at your code:
score = yourScoreVariable; answers = yourAnswersVariable;
startTime = getTimer();
_root.finishButton.onRelease = function() { endTime = getTimer() - startTime; moodleService.send_response(answers, endTime, score); moodleService.cleanUp(); }
moodleService.init();
Could you tell us a bit more about this code?