Question
bookmark and retrieve lesson location from LMS using SCORM
Hello,
I'm looking for some help with my actionscript and suggestions on anything else (changes in the javascript/html template) that I might need to successfully bookmark. I have a file that tracks approrpiately in my LMS using fscommand and basic scorm calls (LMSInitialize, LMSFinish, etc...). However, I'd like to be able to bookmark the last frame accessed, pass that info to the LMS, and have it retrieved by my flash file and return the user to the place they left off. I have found many posts on different forums on this subject, but I've tried all of the suggestions and nothing seems to work. I don't know if I'm missing something in my actionscript, or missing something in the html/javascript code, but it's not working. Below I've pasted my latest try at getting this to work. If anyone out there has done this before and could take a look at my code and tell me what I'm missing, I would appreciate it greatly.
//code for button which will send value to the LMS
on (release) {
fscommand("LMSSetValue","cmi.core.suspend_data,2");
fscommand("LMSSetValue","cmi.core.exit,suspend");
fscommand("LMSCommit","");
fscommand("LMSFinish","");
}
//code for button retrieving location
on (release){
fscommand("LMSGetValue","cmi.core.suspend_data")
gotoAndStop("cmi.core.suspend_data");
}
I've also tried using cmi.core.last_location, in the same manner as suspend_data is used above and neither seems to work. I've read that there may be a delay with using LMSGetValue, so, in addition, I've tried adding the get value to the first frame and then not trying to retrieve the value until the second frame, but that doesn't seem to work either. Do I need to add something to the html file after it is published? Any other suggestions?
Any help that someone out there could provide would be much appreciated. Thanks!

I'm looking for some help with my actionscript and suggestions on anything else (changes in the javascript/html template) that I might need to successfully bookmark. I have a file that tracks approrpiately in my LMS using fscommand and basic scorm calls (LMSInitialize, LMSFinish, etc...). However, I'd like to be able to bookmark the last frame accessed, pass that info to the LMS, and have it retrieved by my flash file and return the user to the place they left off. I have found many posts on different forums on this subject, but I've tried all of the suggestions and nothing seems to work. I don't know if I'm missing something in my actionscript, or missing something in the html/javascript code, but it's not working. Below I've pasted my latest try at getting this to work. If anyone out there has done this before and could take a look at my code and tell me what I'm missing, I would appreciate it greatly.
//code for button which will send value to the LMS
on (release) {
fscommand("LMSSetValue","cmi.core.suspend_data,2");
fscommand("LMSSetValue","cmi.core.exit,suspend");
fscommand("LMSCommit","");
fscommand("LMSFinish","");
}
//code for button retrieving location
on (release){
fscommand("LMSGetValue","cmi.core.suspend_data")
gotoAndStop("cmi.core.suspend_data");
}
I've also tried using cmi.core.last_location, in the same manner as suspend_data is used above and neither seems to work. I've read that there may be a delay with using LMSGetValue, so, in addition, I've tried adding the get value to the first frame and then not trying to retrieve the value until the second frame, but that doesn't seem to work either. Do I need to add something to the html file after it is published? Any other suggestions?
Any help that someone out there could provide would be much appreciated. Thanks!