05-18-2011 09:03 AM
05-18-2011 12:39 PM
Hi, flash.external.ExternalInterface call doesn't seem to work?! Im getting Error #2060. Any hints? Regards, Mikas
#2060Security sandbox violation: ExternalInterface caller %1 cannot access %2.
You probably need to use allowDomain("*") or something similar to setup the correct permissions. Have a look at the actionscript documentation for the functions you are using. They explain it more there.
I'm curious as to what you're trying to do, such that you need ExternalInterface for an AIR app? I've only ever used it to talk between a swf and an html page.
05-19-2011 04:17 AM
Where should I add allowDomain("*") ?
Basically Im trying to run the last example from this page (ExternalInterfaceExample.as):
05-19-2011 05:19 AM
Response to your question below, but you're asking in the wrong place. This is a forum for Adobe AIR development on the PlayBook. You need a flash player forum.
Anyway, the instructions are in the link you sent:
<param name="allowScriptAccess" value="always" />
For no. 2 use "*" instead of sourceDomain to specify a wildcard which will allow any domain.