Hi All,
I have done a Scorm Object in Flash format. Please go to download it
http://www.cemtech.biz/tiki-list_file_gallery.php?galleryId=17It work except the Suspend and Resume part. Hope someone can take a look.
The flash has a movieclip which has 5 pages in total.
Page 1 has next button which has the actionscript:
on (release) { fscommand("LMSSetValue","cmi.core.exit,suspend"); fscommand("CMISetLocation","1"); fscommand("CMISetData","1"); fscommand("LMSCommit",""); gotoAndPlay(2); } |
Page 2 (also page 3, 4) has Previous and Next buttons which have the actionscript:
on (release) { fscommand("LMSSetValue","cmi.core.exit,suspend"); fscommand("CMISetLocation","2"); fscommand("CMISetData","2"); fscommand("LMSCommit"); gotoAndPlay(3); }
on (release) { gotoAndPlay(1); }
|
Page 5 has Previous and Done buttons, which will send the "complete" signal back to docebo.
on(release) { fscommand("CMISetLocation","5"); fscommand("CMISetData","5"); fscommand("CMISetCompleted",""); fscommand("CMIFinish",""); fscommand("CMIFinishFlag",""); }
on (release) { gotoAndPlay(4); } |
At the keyframe1 of the movieclip, i have the following actionscript. This is to do resume part. So, I need to read the cmi.suspend_data value from docebo, and put it into a dynamic variable called 'dynamictext' (advised by someone at another site
http://adlcommunity.net/mod/data/view.php?d=27&mode=single&page=2).
_root.dynamictext=""; fscommand("LMSGetValue", "cmi.suspend_data,dynamictext"); //fscommand("msgbox",_root.dynamictext.text); if (_root.dynamictext.text.length>0){ gotoAndStop(_root.dynamictext.text); } else { stop(); } |
I just can't get the cmi.suspend_data value. Anything i have done wrong?
From LiangEH