actionscript calling javascript with Security Exception

Posted by Jeffrey Chee on Stack Overflow See other posts from Stack Overflow or by Jeffrey Chee
Published on 2010-03-14T02:41:47Z Indexed on 2010/03/14 2:45 UTC
Read the original article Hit count: 405

Filed under:
|
|

I have a swf hosted at domain A, and I have a html at domain B

My swf is able to be loaded from accessing the html at domain B. However, the swf gets a SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://domainA.com/TrialApp.swf cannot access http://DomainB.com/.

The as3 is just the below:

ExternalInterface.call("javascript:_invite();");

I've also loaded the crossdomain policy file from Domain B during initialization.

Security.loadPolicyFile( "http://DomainB/crossdomain.xml" );

How do I go about solving this?

in my html, I have

allowscriptaccess='always'

Thanks in Advance

© Stack Overflow or respective owner

Related posts about as3

Related posts about facebook