# Crossdomain and file XML

**URL:** <https://forum.kirupa.com/t/crossdomain-and-file-xml/310567>\
**Category:** flash\
**Created:** [June 13, 2010, 10:05pm UTC](https://forum.kirupa.com/t/crossdomain-and-file-xml/310567 "2010-06-13T22:05:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmussoni](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@cmussoni](https://forum.kirupa.com/u/cmussoni)\
**Post date:** [June 13, 2010, 10:05pm UTC](https://forum.kirupa.com/t/crossdomain-and-file-xml/310567/1 "2010-06-13T22:05:54Z")

</div>

Hello,  
I’ve two Web Server:  
-server 1 with IP 192.168.0.50;  
-server 2 with IP 192.168.0.249;  
both servers are on the same network through a router.  
In the server 1 I’ve a html page linked to a swf file that attempt to load a xml  
file contained in server 2 root.  
In the server\_1 root I’ve the swf file:

System.security.loadPolicyFile(“[http://192.168.0.250/crossdomain.xml](http://192.168.0.250/crossdomain.xml)”);  
System.security.allowInsecureDomain("\*");  
listXML1 = new XML();  
listXML1.ignoreWhite = true;  
listXML1.onLoad = makeArray;  
listXML1.load(“[http://192.168.0.250/var.xml](http://192.168.0.250/var.xml)”);  
function makeArray(success) {…  
…

In the server\_2 root I’ve the crossdomain.xml:

\<?xml version=“1.0”?\>  
\<!DOCTYPE cross-domain-policy SYSTEM “[http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd](http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd)”\>  
\<cross-domain-policy\>  
\<allow-access-from domain="\*" secure=“false”/\>  
\<site-control permitted-cross-domain-policies=“all”/\>  
\</cross-domain-policy\>

and the var.xml file.  
The problem is that the swf file can’t read the var.xml file.  
May someone tell me where is the problem ?  
Thank’s a lot.  
[cl@udio](mailto:cl@udio)
