Use of cmi.progress_measure for a progress bar
Hi there,
I am normally using variables and advanced/shared actions, but I would like to try and use the SCORM2004 cmi.progress_measure to show the progress to the learner.
Here is the idea.
- On every slide I will have a JS to set the cmi.progress_measure in the LMS.
- I will pass the cmi.progress_measure to a custom variable (progressMeasure) which I will then use for a progress bar.
- I am thinking of having a progress bar as a smart shape with many states. Lets say 10. Depending on the value of the variable - in this case - progressMeasure - the state of the progress bar would change. If the value is 0.2 the progress bar will be filled up to 20%. etc.
If there are 10 states of the progress bar if there would be a way to increment gradually by a 0.10 or similar value the variable and therefore having the progress bar increasing steadily. Another example can go to up to 100 checkpoints and increase by 0.01.
Hereunder is the OnEnter JS I am using. The first part works, but then it becomes a bit too heavy for me
The missing elements are in comments
The smart shape for the progress bar is called - ss_ProgressBar. It is set to appear for the Rest of the Project.
The state names of this shape are "One", "Two", etc.
SCORM2004_CallSetValue('cmi.progress_measure', 0.74);
var progressMeasure = SCORM2004_CallGetValue("cmi.progress_measure" );
function checkProgress();{
//what could be the if statement?
if ???
cp.changeState("ss_ProgressBar","One")
}else{
//what would be the else statement?
}
Thanks in advance
B
PS. I realize now that I should also be able to get the bookmarking right.
