[worldKit-dev] Trouble with javascript - to - worldKit

Mikel Maron mikel_maron at yahoo.com
Mon Oct 22 15:35:55 PDT 2007


Looks like it is a Flash security issue .. flash prevents swf-js communication when the swf is loaded locally.

http://forums.port80.asn.au/showthread.php?t=9501

Solution is to set security settings in flash .. perhaps we can make this a config setting...

System.security.allowDomain("*");

----- Original Message ----
From: Ian Mayo <ian at planetmayo.com>
To: Discussion of worldKit use and development <worldkit-dev at lists.brainoff.com>
Sent: Thursday, October 11, 2007 11:13:11 AM
Subject: Re: [worldKit-dev] Trouble with javascript - to - worldKit


Morning Mikel,
the worldkit.swf was being run locally: by double-clicking on the
.html directly from the download folder.  From my experiments it does
appear that the swf works if I first copy it to my web server (IIS,
Windows 2000).

Regards,
Ian.

On 11/10/2007, Mikel Maron <mikel_maron at yahoo.com> wrote:
>
> Hi Ian
>
> In this case, was worldkit.swf being loaded locally or from a remote
 server?
> If a remote server, than the problem probably will be fixed by
 loading
> worldkit.swf locally.
>
> Mikel
>
> ----- Original Message ----
> From: Ian Mayo <ian at planetmayo.com>
> To: worldkit-dev <worldkit-dev at lists.brainoff.com>
> Sent: Wednesday, October 3, 2007 1:03:51 PM
> Subject: [worldKit-dev] Trouble with javascript - to - worldKit
>
>  Hi all,
> it appears there's come kind of problem calling worldKit from
> javascript.  In particular, the demo example in the worldKit
> documentation doesn't work when run locally (file:// url).  But,
 tests
> indicate it would run from a web-server (http:// url)
>
> My third-party developer is coming to the end of his development
> project regarding improved visualisation of rss feeds - but the html
> test-wrapper doesn't work when run locally.
>
> There are a number of blog/forum entries regarding the problem
 (google
> for "Error calling method on NPObject!").  It appears to happen
> because a call to System.security.allowDomain is required inside the
> Flash movie.
>
> Has anybody out there encountered/resolved this problem?
>
> cheers,
> Ian
> _______________________________________________
> worldkit-dev mailing list
> worldkit-dev at lists.brainoff.com
> http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com
>
>
> _______________________________________________
> worldkit-dev mailing list
> worldkit-dev at lists.brainoff.com
> http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com
>
>
_______________________________________________
worldkit-dev mailing list
worldkit-dev at lists.brainoff.com
http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com






More information about the worldkit-dev mailing list