# Cross-domain not working

**URL:** <https://forum.kirupa.com/t/cross-domain-not-working/268967>\
**Category:** Uncategorized\
**Created:** [August 20, 2008, 11:42pm UTC](https://forum.kirupa.com/t/cross-domain-not-working/268967 "2008-08-20T23:42:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergeantFlash](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@SergeantFlash](https://forum.kirupa.com/u/SergeantFlash)\
**Post date:** [August 20, 2008, 11:42pm UTC](https://forum.kirupa.com/t/cross-domain-not-working/268967/1 "2008-08-20T23:42:51Z")

</div>

I am trying to load an swf file from [domain1.com](http://domain1.com) into an swf file from [domain2.com](http://domain2.com). However, this is not working, I have tried everything…

Code in swf file from [domain1.com](http://domain1.com):  
ActionScript Code:  
[LEFT]Security.[COLOR=#993300]allowDomain[/COLOR]COLOR=#000000[/COLOR];  
[/LEFT]

Code in swf file from [domain2.com](http://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](http://domain1.com) that looks like this:  
Code:  
\<?xml version=“1.0”?\> \<!-- [http://www.domain1.com/crossdomain.xml](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
