i meant the scorm connection initialization code, and whatever course code you use to track progress.
the underlying idea here is that SCORM won't track a SCO's progress for you; you need to do it yourself in your course's code, then just use SCORM to store that data in the LMS.
this means you need to come up with a mechanism to determine which SWFs have been completed and which ones haven't, then store that data in the LMS.
one way to do it is cmi.location, which can store a URL. if your course follows a strict sequential order, you could use it to track progress.
------------------------
var bookmark:String = scormsession.get("cmi.location");
if(bookmark != ""){ //a bookmark was found, let's load it loadContentSWF(bookmark);
} else { //no bookmark found, start from beginning
loadContentSWF("
http://path/to/file/1.swf");
}
function loadContentSWF:void( swfURL ){
//load the swf using the swfURL variable myMovieClipLoader.loadClip(swfURL); //bookmark the swf
scormsession.set("cmi.location", swfURL);}
----------------------
you could also use suspend_data to store an array indicating which SWFs have been completed
----------------------
var completedSWFs:Array = [0, 0, 0, 0, 0, 0];
//upon completing the first SWF:completedSWFs[0] = 1;
//completedSWFs now returns [1, 0, 0, 0, 0, 0]
//save this info in the LMS:scormsession.set("cmi.suspend_data", completedSWFs.ToString());
var suspend_data:String = scormsession.get("cmi.suspend_data");
completedSWFs = suspend_data.split(",");//completedSWFs now returns [1, 0, 0, 0, 0, 0]
------------------------------
so as you can see, it really depends on how you design your course code. it's up to you to build a loading/tracking mechanism, and once you've it built you can use SCORM to store important data such as URLs or other strings. there are a lot of different ways to do it, and you'll need to figure out what works best for you.
the best way to start (in my opinion) is to get it working
without SCORM, then add the SCORM code as needed. some SCORM purists may disagree with this approach, but this is also how most flash-based elearning tools work.
- philip