Update: AS3 version now available, too.
The idea was simple: give me (and others) a way to make SCORM calls using ExternalInterface without having to constantly type ExternalInterface!
So now instead of typing the tedious
we can just type
To initialize a course, you can just do the following:
Usable return values and automatic ExternalInterface error-checking
The class includes type checking, type conversion, and error-checking to help avoid running into the same annoying issues over and over again. Let the class worry about that stuff, so we can just request our data! 🙂
You can use the boolean return types to ensure your course works as expected. For instance, you could do something like:
If you’re keeping the same course functionality and not adding new features, you’ll just need to change some of the variable names in your own course ActionScript, such as going from “cmi.core.lesson_location” to “cmi.location”.
If you want to add SCORM 2004 features, the wrapper is already set up for it, just use the appropriate syntax, such as
var progress:String = scorm.get("cmi.progress_measure");.
(In case you’re wondering how the scripts know which version of SCORM is being used, the SCORM version is declared by the imsmanifest file and the course settings when importing the course into the LMS.)
Get the class file
You can get the class file and read the (meager) documentation at https://github.com/pipwerks/scorm-api-wrapper/.
PLEASE give me feedback!
Please try it out and let me know what you think! I’m still testing it out and would appreciate any feedback or suggestions you might have. Thanks in advance!