Hi John,

I do have the allowScriptAccess param set to "always". When it wasnt,
I get a flash error message: "Security sandbox violation" saying that
the SWF is not permitted to access the javascript.

I think this parameter only dictates outbound (SWF -> html/javascript)
security and not inbound, which is what I'm after.

I've also tried hosting a crossdomain.xml with the content:

<cross-domain-policy>
    <allow-access-from domain="*" secure="false"/>
    <allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy>

But no luck there...

Kind regards,
Ed



--- In [email protected], John Robinson <jrobi...@...> wrote:
>
> I think you need to add the "allowScriptAccess" param:
> http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16494
> 
> John
> 
> 
> On Jan 22, 2009, at 11:49 AM, edison5308 wrote:
> 
> > Hi Everyone,
> >
> >
> > I have a problem (looks like a domain issue) with communication
> > between javascript and a SWF on a different domain.
> >
> > I have the following setup:
> >
> > - Javascript (domain1)
> > - SWF located on a CDN (domain2)
> >
> > The javascript has 2 functions:
> > 1. getData()
> > 2. replay()
> >
> > The SWF has 1 function:
> > 1. play()
> >
> > On application complete, the SWF calls play(). The function play()
> > makes an external interface call to the javascript's getData()
> > function - this part is working fine regardless of domain.
> >
> > On the javascript side, replay() is supposed to invoke the SWF's
> > play() function. I have allowed access to the SWF's play() function  
> > by:
> > ExternalInterface.addCallback("replay", play);
> > This all works when the javascript and SWF are served from the same
> > location but throws the following error if the SWF is elsewhere:
> >
> > Error calling method on NPObject! [plugin exception: Error in
> > Actionscript. Use a try/catch block to find error.].
> >
> > Thanks in advance.
> >
> >
> > Kind regards,
> > Ed
> >
> >
> >
> > -----------------------------------
>


Reply via email to