This is not really a SWFObejct specific problem, so you will most likely
find better help on generalist flash sites.

Sounds like you want to call a js function from Flash. The best way to do
that is via ExternInterface. Have a quick Google search on how to call
javascript methods from Flash using ExternalInterface (it is really quite
simple).

Cheers,
Aran

On Tue, Feb 16, 2010 at 9:23 PM, Robert Eriksson <
[email protected]> wrote:

> 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]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>

-- 
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