Friday, November 4, 2011

Access Score Variables from an Articulate Quizmaker Quiz

I often get developers to my blog that are interested in using Articulate's Quizmaker to enhance their custom Flash based eLearning courses. I have previously written about how to load a Quizmaker quiz into your own Actionscript 2.0 swf and still report to SCORM. What if we want to do our own custom reporting? How do we access Quizmaker's score variables?

Well, assuming you've loaded the quiz into a MovieClip "_root.myContainer" here you are:

Score in % = _root.myContainer.g_oVariableMgr.m_arrVariables[7].m_nNumber
Total Points Awarded = _root.myContainer.g_oVariableMgr.m_arrVariables[2].m_nNumber

The Passing Percent = _root.myContainer.g_oVariableMgr.m_arrVariables[5].m_nNumber
The Passing Points = _root.myContainer.g_oVariableMgr.m_arrVariables[6].m_nNumber

Total Max Points = _root.myContainer.g_oVariableMgr.m_arrVariables[4].m_nNumber
Total Answered Max Points = _root.myContainer.g_oVariableMgr.m_arrVariables[3].m_nNumber


No comments:

Post a Comment