Yes, we use external scripts with LearningSpace4, we are in the proccess of finding out how to communicate with LearningSpace5.
You can work out how to do it by reading the "Course Administrators Guide".
The commands "getparam" and "putparam" are what you need.
(Page 52 details "getparam"
You will need the aicc_url and aicc_sid both of which are passed through from a learningspace page as a query string.
ie: you embed your flash in a page called assessment.html
link assessment.html from learningspace. When you click on the link in LS4 it will generate the url with aicc_sid and aicc_url included.. something like this:
Code:
[URL unfurl="true"]http://chimera.learnedsolutions.com/efl/module4/lesson01/lia/M4L01_lia_01.html?aicc_sid=73265710-26633-RID33662163&aicc_url=http%3A%2F%2Fchimera.learnedsolutions.com%2FLearningSpace4%2FProgram%2FScripts%2FPWTrack.asp[/URL]
You'll have to read up on how to extract that info from within flash.
here is some perl that may or may not help you:
Code:
my $cmdinfo = "command=putparam\&version=3.0\&session_id=$sessid\&aicc_data=[Core]\&$put";
my $req = new HTTP::Request POST => $url;
$req->content_type('application/x-[URL unfurl="true"]www-form-urlencoded');[/URL]
$req->content($cmdinfo);
This way works anyway.. there may be another way to integrate with flash directly, not sure on that.
Hope this helps!!
I work with ommah, and he checks these forums a lot more than me, so if you need further help, maybe try contacting him.