Hi all
I'm using fscommands to communicate with the SCORM 1.2 template published from Flash. I need to use fscommand because, even though I'm working in Flash 8, I'm working in an older file that was created in Flash 7. And
everything breaks when I try to publish it to version 8.
So I can't use the ExternalInterface method, I have to use fscommands.
Now my problem is that I'm able to write to the LMS using the following:
fscommand("LMSSetValue", 'cmi.suspend_data,'+toLMS); //<--toLMS is a string of text i want saved
fscommand("LMSCommit", "");
BUT I'm not able to retrieve that string later. I try to use:
fscommand("LMSGetValue", "cmi.suspend_data,returnVal"); //<--returnVal is a string declared earlier
Ive also tried a number of variations like:
fscommand("LMSGetValue", 'cmi.suspend_data,'+returnVal);
var fromLMS:String = String(fscommand("LMSGetValue", "cmi.suspend_data,returnVal"));
textbox.text = String(fscommand("LMSGetValue", "cmi.suspend_data,returnVal"));
fscommand('LMSGetValue', 'cmi.suspend_data,returnVal');
Nothing has returned anything.
I do know for certain that my main_DoFSCommand in my HTML is called, it then calls the SCOGetValue, and that successfully calls the LMSGetValue function. And at each call, the variables being passed are all as expected.
So this is making me wonder if I'm actually calling it correctly from Flash in the first place. And with anything pertaining to
SCORM and Flash, I haven't found much out there pertaining to this, so hopefully someone here can help.
Thank you in advanced
Chris