PDA

View Full Version : ExternalInterface security issues


2beers
04-28-2010, 02:10 PM
Hi everyone.

I using javascript to communicate with a flash object(swf). everything is working ok if the swf is loaded from the same domain as the html page that embed the flash. however if I embed the flash from another location I receive a javascript unknown error and I can't communicate with the flash.

Is there everything I can do to overwrite this security issue??

Thanks in advance

tadster
04-29-2010, 12:22 AM
one way is with a crossdomain.xml file in that other location that allows the flash to communicate there.

2beers
04-29-2010, 06:15 AM
one way is with a crossdomain.xml file in that other location that allows the flash to communicate there.

ok. so
Security.allowDomain("mydomain.com");

is not enough. I need to add a crossdomain file on the server that contains the swf, or on the server that contains the html page?

tadster
04-30-2010, 12:17 AM
yep, the domain that is not the home domain of the swf.