# Can't access xml file from swf

**URL:** <https://forum.kirupa.com/t/cant-access-xml-file-from-swf/245618>\
**Category:** flash\
**Created:** [December 1, 2007, 10:33pm UTC](https://forum.kirupa.com/t/cant-access-xml-file-from-swf/245618 "2007-12-01T22:33:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clem\_c\_rock](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@clem\_c\_rock](https://forum.kirupa.com/u/clem_c_rock)\
**Post date:** [December 1, 2007, 10:33pm UTC](https://forum.kirupa.com/t/cant-access-xml-file-from-swf/245618/1 "2007-12-01T22:33:12Z")

</div>

I have a curious problem.

I have an swf file that is trying to read an xml file from this server: [demo.feedxi.com](http://demo.feedxi.com)

The full Url looks like this:  
[http://demo.feedxi.com/Warm.xml?source=true&s=Test](http://demo.feedxi.com/Warm.xml?source=true&s=Test) Search&w=google&w=yahoo&w=youtube&w=msn

Now by, itself, the swf reads the xml file w/ no problem. It also reads the xml file fine if it’s embedded in an html file and lives in the appropriate folder  
in my website directory. The problem is when I embed the file in the actual page of the program.

I have the security settings as such:

```auto

import flash.Security;
System.security.allowDomain("feedxi.com");
System.security.allowInsecureDomain("feedxi.com");
System.security.allowDomain("demo.feedxi.com");
System.security.allowInsecureDomain("demo.feedxi.com");

```

I also have the crossdomain.xml set as such:

```auto

<cross-domain-policy>
  <allow-access-from domain="demo.feedxi.com" />
  <allow-access-from domain="feedxi.com" />
</cross-domain-policy>

```

Is there anything I’m missing here?

Thanks,  
Clem C
