Is there any way to store a pre test score in SCORM 2004. I have developed a module in actionscript 2. The pre test and post test uses the same question set.
The client is now demanding that the pre test scores should also be stored along with post test. Is there any way it can be done. Which value should / can I set for this.
I have spent last two days trying to find a solution to this. Is there any way to set a custom variable? or is there any pre set variable name that I missed?
It sounds like you're trying to put the pre-test and the post-test in the same SCO. The cleanest way to report separate pre and post test results would be to put the pre and post tests in their own SCO, by editing your packages imsmanifest.xml file. (see more on content packaging here: http://scorm.com/scorm-explained/technical-scorm/content-packaging/) You can link back to the same content multiple times in the same manifest and include query string parameters which your content then reads and uses to know what mode it's in (pre-test vs post test).
That said, a lot of people avoid using multiple SCOs so they don't have to think about how their LMS or SCORM manages those SCOs. Using only a single SCO gives your content a lot of control, but the trade off is it looks like one monolithic item to the LMS, so reporting on multiple tests can't be as nice. So, there is no specific pre-test variable because SCORM is designed on the assumption that pre-tests would go in their own SCO, so there is no need for such a variable.
What you can do in a single SCO is create additional named objectives and interactions. If you just want the score for the pre-test, that's going to look better, but if you're tracking responses to each question you'll wind up with a list of items like "PreTest question 1, PreTest question 2" ... and continuing to "PostTest question 1, PostTest question 2"... the naming scheme is up to you of course, but the constraint is that you're dealing with one list of objectives and interactions and can only differentiate them by name.
An example course using objectives and interactions: http://scorm.com/scorm-explained/technical-scorm/golf-examples/#advancedruntime Some tips on what tests should report (and how): http://scorm.com/blog/2010/11/4-things-every-scorm-test-should-do-when-reporting-interactions/
Sorry for not being more step-by-step, but as you can see you have a couple of options, each of which involve a little more detail than I can really put in one answer.