PDA

View Full Version : Flash 8 Bookmarking with SCORM


MattF.
12-06-2005, 02:43 PM
Hello. I have a question concerning bookmarking from within Flash. I am new to SCORM, but so far what I am doing to bookmark is calling a function that sets a bookmark on each page using lesson_location and LMSSetValue (fscommands). When I test it using the ADL Test Suite, it is definitely functioning correctly, that is, it is setting the locations correctly.

The problem is when I try to Get the location, emulating if a student had taken the course and was re-entering where he left off. What I have for the actionscript is basically the GetValue fscommand on the frame, but i'm not sure how to make this work. Can I make a function with the getvalue command and then call it from a button press? That is the goal, but I have tried different varations of this code and keep getting location errors in the Test Suite. (SCORM 1.2 btw, due to LMS restrictions can' t use 2004 yet). Any help is greatly appreciated!

objectDave
12-30-2005, 01:53 PM
Hello. I have a question concerning bookmarking from within Flash. I am new to SCORM, but so far what I am doing to bookmark is calling a function that sets a bookmark on each page using lesson_location and LMSSetValue (fscommands). When I test it using the ADL Test Suite, it is definitely functioning correctly, that is, it is setting the locations correctly.

The problem is when I try to Get the location, emulating if a student had taken the course and was re-entering where he left off. What I have for the actionscript is basically the GetValue fscommand on the frame, but i'm not sure how to make this work. Can I make a function with the getvalue command and then call it from a button press? That is the goal, but I have tried different varations of this code and keep getting location errors in the Test Suite. (SCORM 1.2 btw, due to LMS restrictions can' t use 2004 yet). Any help is greatly appreciated!
using fscommand to get a return value from SCORM API requires the following syntax: fscommand("theAPICall","returnValue,variableName").
For instance, try this: fscommand("LMSGetValue", "cmi.core.student_name,_global.learnerName");
You should use suspend_data for bookmarking - there is pretty good documentation with the fsSCORM extension.
Be advised that fscommands lock you in to Windows and browsers that support ActiveX.
fscommands that return a value must be called from _root timeline and are unreliable until frame 2.

Good luck...