I am trying to load an swf file from domain1.com into an swf file from domain2.com. However, this is not working, I have tried everything…
Code in swf file from domain1.com:
ActionScript Code:
[LEFT]Security.[COLOR=#993300]allowDomain[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]
Code in swf file from domain2.com:
ActionScript Code:
[LEFT][COLOR=#993300]var[/COLOR] [COLOR=#993300]url[/COLOR]:URLRequest = [COLOR=#993300]new[/COLOR] URLRequestCOLOR=#000000[/COLOR]; [COLOR=#993300]var[/COLOR] loader:Loader = [COLOR=#993300]new[/COLOR] LoaderCOLOR=#000000[/COLOR]; loader.[COLOR=#993300]load[/COLOR]COLOR=#000000[/COLOR]; addChildCOLOR=#000000[/COLOR];
[/LEFT]
I have a crossdomain.xml file at the root of domain1.com that looks like this:
Code:
<?xml version=“1.0”?> <!-- http://www.domain1.com/crossdomain.xml --> <cross-domain-policy> <allow-access-from domain="*" /> </cross-domain-policy>
Any help is appreciated, thanks in advance: This works on my computer, and it works if the two files are in the same domain, but not when they’re on different domains