Hi Wayne
If I understand you correctly, you have an HTML-based course that also includes a little Flash in some places. You want these Flash bits to use SCORM.
The wrappers were designed to be either all HTML/JavaScript or all ActionScript, not both. This is why you're getting an error. The ActionScript wrapper can't initialize a SCORM session if the JavaScript wrapper has already done it.
Since you're already using JavaScript in the HTML portion of your course, the easiest solution is to remove the ActionScript wrapper. Instead, use ExternalInterface in your AS code to invoke functions in the JavaScript wrapper whenever you need them.
-----
import flash.External.*;
//Setting something
ExternalInterface.call("pipwerks.SCORM.set", "cmi.score.raw", 85);
ExternalInterface.call("pipwerks.SCORM.save");
//Getting something
var learner_name:String = ExternalInterface.call("pipwerks.SCORM.get", "cmi.learner_name");
-----
Be sure to import the ExternalInterface class into your SWF; it only needs to be done once per SWF.
Using this approach, you can let your HTML/JavaScript remain in control, and simply pass your requests from the ActionScript to the JavaScript. Just call the few items you need.
Since the HTML/JavaScript side has already initialized the SCORM connection, you don't need to initialize again.
- philip