# Cross domain crazyness

**URL:** <https://forum.kirupa.com/t/cross-domain-crazyness/159984>\
**Category:** Uncategorized\
**Created:** [August 22, 2005, 3:26pm UTC](https://forum.kirupa.com/t/cross-domain-crazyness/159984 "2005-08-22T15:26:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthmahon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@darthmahon](https://forum.kirupa.com/u/darthmahon)\
**Post date:** [August 22, 2005, 3:26pm UTC](https://forum.kirupa.com/t/cross-domain-crazyness/159984/1 "2005-08-22T15:26:21Z")

</div>

Hi,

I’m trying to load an XML generated file from one subdomain to another subdomain that hosts the swf file.

The xml file is located here:  
[http://xml.mydomain.com/cgi-bin/getxml.cgi](http://xml.mydomain.com/cgi-bin/getxml.cgi)

getxml.cgi outputs valid xml.

Now, my swf file is located here:

[http://static.mydomain.com/xmlLoad.swf](http://static.mydomain.com/xmlLoad.swf)

Within my flash file I load the xml as such:

```auto

var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://xml.mydomain.com/getxml.cgi");

```

I have a cross domain policy setup on the root:

```auto

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy 
  SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
   <allow-access-from domain="*" />
</cross-domain-policy>

```

Now when I view my flash file it doesn’t do anything? It is not retrieving the data - if I test in the Flash Player it works fine so it must be the cross domain stuff.

Exporting ActionScript 2 and Flash Player 7.

Cheers,  
Chris
