how to add SCORM code "cmi.comments" and "cmi.comments_from_lms" to flash ActionScript3?

518 views
Skip to first unread message

Jason

unread,
Mar 16, 2009, 4:57:07 AM3/16/09
to eLearning Technology and Development
hello,guys,I am a novice...i post my question here,hope all of you can
help me..
my question is if i want the student can send his comments to LMS by
SCOs,how to do this by using ActionScrip 3?
I create the SCO in flash cs3 by using SCORM_API_Wrapper_V1.1.7 and
pipwerks.SCORM.as,so how to do the comments function?
Appreciate you can give me the cue and help!
thanks a lot.

Philip Hutchison

unread,
Mar 18, 2009, 12:49:52 AM3/18/09
to elearning-technolo...@googlegroups.com
hi jason

the pipwerks SCORM wrapper and SCORM ActionScript classes only provide a way to make the SCORM calls;  whatever calls you want to make need to use the syntax provided in the SCORM reference, such as "cmi.comments_from_learner.0.comment"

for example, in SCORM 2004 you'd use cmi.comments_from_learner like this:

scorm.set("cmi.comments_from_learner.0.comment", "your first comment here");
scorm.set("cmi.comments_from_learner.1.comment", "your second comment here");

var firstcomment:String = scorm.get("cmi.comments_from_learner.0.comment");
//trace(firstcomment) should return "your first comment here"

note that comments_from_learner is an array. see section 4.2.2 of the SCORM 2004 Run-Time Environment manual for more details.

as for comments_from_lms, the documentation is very vague about how it works, and comments_from_lms is NOT mandatory for SCORM conformance.  this means it's probably not a good idea to rely on it, since it may not be available in all LMSs and might work differently from system to system.

if anyone else has insight into comments_from_lms, i'd love to hear about it.

- philip
Reply all
Reply to author
Forward
0 new messages