I just converted my AS2 SCORM class to AS3.

Read documentation and download file(s) here. Note this class requires the pipwerks SCORM API wrapper for JavaScript.

Not being much of an AS3 guy (so far!), it was easier than I expected; I guess since I had already used strong typing in AS2 it met most of the AS3 requirements for strong typing. The only other changes between the AS2 and AS3 classes are pretty simple:

  • Added the AS3-required ‘package’ wrapper. I used the package name “pipwerks”; if you use this class, you’ll need to either place the class in a subfolder named pipwerks, or rename the package. It’s not a requirement, but I’d appreciate it if you left the pipwerks in there. 🙂
  • Converted all “Number” variables to “int”
  • Changed all “Void” function return types to “void”

I think that’s it…

As always, please give me feedback! Let me know if it does or doesn’t work for you, if you find any bugs, or if you have any suggestions for improvements.

Similar Posts

One Comment

  1. You’re way faster than me, Philip. I will work to run this through its paces this week.

    You’re going to help a lot of people out with this, dude. Props to you.

Comments are closed.