I have a scorm course built in Flash MX Pro, and i trying to add bookmarking functionality to the course, but it is not working.
Here is the code of my HTML file, which works as a wrapper for my swf's files.
<script language="javascript"> loadPage();//i am calling the swf file in this function before this var coreSCOLocation = LMSGetValue("cmi.core.lesson_location"); if(LMSGetLastError() == 0){ //coreSCOLocation contains an anchor name defined in the HTML page.
//start the SCO off where the student left off window.location.hash = coreSCOLocation } else { //Error Processing }
function calc(status) {
if ( status == 'failed' ) {
doLMSSetValue( "cmi.core.lesson_status", "failed" ); } else if ( status == 'passed' ) {
Umm... you're not using any of my code examples (the SCORM wrapper or the SCORM ActionScript file). You're also trying to run JavaScript in your Flash file... you have to incorporate ExternalInterface to do that; that's why I created the SCORM classes for ActionScript. :)
Try this demo (SCORM 1.2, ActionScript 2) http://pipwerks.com/journal/downloads/4
The thing to remember is that you can use my ActionScript class's scorm.get and scorm.set methods for any of SCORM's cmi elements, including cmi.core.lesson_location (the bookmarking data element).