Question
how to pass Status and location for bookmarking in flash using FSCOMMAND
Dear All,
I am developing a eLearning course using flash 8. I have done the SCORM 1.2 packaging with all the supportive files. In flash i have done the following code for FScommand value passing for Location and status.
The follwing code is in the first frame of my flash file to get values.
if (ImsIntialized == false)
{
ImsIntialized = true;
} // end if
if (ImsIntialized == true)
{
fscommand("LMSGetValue", "cmi.core.student_name,full_name");
fscommand("LMSGetValue", "cmi.core.lesson_location,nlocation");
}
if (nlocation == "one")
{
gotoAndStop(2);
}
else {
gotoAndStop(nlocation);
}
The "nlocation" variable is a dynamic text field which need th get the value.
Also iam using the following code to send values.
fscommand("LMSSetValue", "cmi.core.lesson_status,incomplete");
fscommand("LMSSetValue", "cmi.core.lesson_location,one");
fscommand("LMScommit");
........................
......................
fscommand("LMSSetValue", "cmi.core.lesson_status,completed");
fscommand("LMSSetValue", "cmi.core.lesson_location,five");
fscommand("LMScommit");
bookmarking is not working. Please help me to resolve this.
I am developing a eLearning course using flash 8. I have done the SCORM 1.2 packaging with all the supportive files. In flash i have done the following code for FScommand value passing for Location and status.
The follwing code is in the first frame of my flash file to get values.
if (ImsIntialized == false)
{
ImsIntialized = true;
} // end if
if (ImsIntialized == true)
{
fscommand("LMSGetValue", "cmi.core.student_name,full_name");
fscommand("LMSGetValue", "cmi.core.lesson_location,nlocation");
}
if (nlocation == "one")
{
gotoAndStop(2);
}
else {
gotoAndStop(nlocation);
}
The "nlocation" variable is a dynamic text field which need th get the value.
Also iam using the following code to send values.
fscommand("LMSSetValue", "cmi.core.lesson_status,incomplete");
fscommand("LMSSetValue", "cmi.core.lesson_location,one");
fscommand("LMScommit");
........................
......................
fscommand("LMSSetValue", "cmi.core.lesson_status,completed");
fscommand("LMSSetValue", "cmi.core.lesson_location,five");
fscommand("LMScommit");
bookmarking is not working. Please help me to resolve this.