Hello!

When a course get completed and the scorm reports completed to the LMS
the browser window loses focus and moves behind another window. How do
I keep the window focus?

I use this javascript when loading the index.html file:
window.top.focus();

How can I call this function from the flash file?

The AS3 code when the course is finished:

function goComplete(){

        success = scorm.set("cmi.core.lesson_status", "completed");
        scorm.save();
        scorm.disconnect();
        trace("course completed");
        lmsConnected = false;

}

I have used Philips Hutchinsons code.


Kind regards
Robert Eriksson

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to