Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
Flash: ExternalInterface.call("pipwerks.SCORM.API.get", "cmi.interactions._count") seems to return undefined, which causes carnage when adding a new interaction id etc. Just as part of general debugging I tried to call pipwerks.SCORM.API.get("cmi.interactions._count") in the FireBug console.. which results in the titular "pipwerks is undefined" error.
SCORM.API.find: API found.
Version: 2004
API: [object Object]
cmi.interactions.(_count value).correct_responses._count
SCORM.data.get(cmi.interactions.1.correct_responses._count) failed.
Error code: 301
Error info: General Get Failure
).
import pipwerks.SCORM;
var lmsConnected:Boolean;
var scorm:SCORM = new SCORM();
var count:Number;
lmsConnected = scorm.connect();
if(lmsConnected){
//Be sure to explicitly convert the data type if you don't want a string
count = Number(scorm.get("cmi.interactions.1.correct_responses._count"));
} else {
trace("Could not connect to LMS.");
}
Checking for GetValue Error
SCORM ERROR FOUND - Set Error State: 301 - The Interactions collection
does not have an element at index 4, the current element count is 4.
1 to 7 of 7