Really simple SCORM AS3 wrapper example
Monday, February 11th, 2008Here’s a simple example of how the SCORM AS3 class can be utilized. (This example uses SCORM 2004 calls.)
Here’s a simple example of how the SCORM AS3 class can be utilized. (This example uses SCORM 2004 calls.)
Finally got around to making some Flash files that demonstrate the pipwerks SCORM ActionScript classes. I’ve created examples for both AS2 and AS3. You can get them here.
Both of these examples have been successfully tested using the latest ADL test suites for SCORM 1.2 and 2004.
JavaScript SCORM_API_Wrapper.js now at v1.1.3. Includes important typo correction.
SCORM.as classes (AS2 & AS3) now at v1.01. Includes check for ExternalInterface availability and presence of required pipwerks JavaScript wrapper.
Two small but important edits.
I just converted my AS2 SCORM class to AS3.
I just finished an ActionScript 2.0 class file meant to be a companion to my JavaScript SCORM API wrapper. It includes a bunch of type checking, type conversion, and error-checking, and works with both SCORM 1.2 and 2004.
Found a small bug when using the wrapper with Flash (AS2): functions that return string values (such as SCORM.data.get()) were coming out ‘undefined’. (grr)
Explicitly typing the return value as a string seems to make Flash happy.
For the last week, I’ve been doggedly attempting to create a hybrid of Flash-to-JavaScript communication techniques for creating cross-browser SCORM-conformant courses that work with almost any version of Flash Player. Today I threw in the towel. Here’s my story.