# Load xml file and cross domain

**URL:** <https://forum.kirupa.com/t/load-xml-file-and-cross-domain/174915>\
**Category:** Uncategorized\
**Created:** [January 10, 2006, 10:26am UTC](https://forum.kirupa.com/t/load-xml-file-and-cross-domain/174915 "2006-01-10T10:26:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazyflasher](https://avatars.discourse-cdn.com/v4/letter/c/c0e974/32.png) [@crazyflasher](https://forum.kirupa.com/u/crazyflasher)\
**Post date:** [January 10, 2006, 10:26am UTC](https://forum.kirupa.com/t/load-xml-file-and-cross-domain/174915/1 "2006-01-10T10:26:39Z")

</div>

Hi, good year…

I have some problems with security file e load xml.

I have u file xml on

[http://www.centrocartucce.it/slideshow.xml](http://www.centrocartucce.it/slideshow.xml)

but the file swf is on

[http://www.actiondesign.it/slide.html](http://www.actiondesign.it/slide.html)

in local inside IDE of flash is ok but online don’t work

this is as:

System.security.allowDomain(“[http://www.centrocartucce.it](http://www.centrocartucce.it)”);  
[//System.security.loadPolicyFile](https://System.security.loadPolicyFile)(“[http://www.centrocartucce.it/slideshow.xml](http://www.centrocartucce.it/slideshow.xml)”)  
var myXML:XML= new XML();  
myXML.ignoreWhite= true;  
myXML.onLoad= function(ok){  
if(ok){  
trace(this);  
debug\_txt.text= this;  
}else{  
debug\_txt.text= “non caricato”;  
}  
}

myXML.load(“[http://www.centrocartucce.it/slideshow.xml](http://www.centrocartucce.it/slideshow.xml)”);

i have create a file crossdomain.xml and put it in www.actiondesign.it/crossdomain.xml

but it don’t work

help me please.

thanks
