# AS3 cross domain policy

**URL:** <https://forum.kirupa.com/t/as3-cross-domain-policy/263501>\
**Category:** flash\
**Created:** [June 16, 2008, 5:49pm UTC](https://forum.kirupa.com/t/as3-cross-domain-policy/263501 "2008-06-16T17:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [June 16, 2008, 5:49pm UTC](https://forum.kirupa.com/t/as3-cross-domain-policy/263501/1 "2008-06-16T17:49:03Z")

</div>

any one have a snip of code to allow the flash player to acess a cross domain policy file. i have one but its for as2 i tried it in as3 and it throws me errors.

---

<div class="post-metadata">

**Author:** ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)\
**Post date:** [June 16, 2008, 5:58pm UTC](https://forum.kirupa.com/t/as3-cross-domain-policy/263501/2 "2008-06-16T17:58:59Z")

</div>

If you’re talking about XML access, it doesn’t need to ‘access’ the file - if the crossDomain.xml file is present, it will be granted access, otherwise it’ll be denied.

---

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [June 16, 2008, 6:59pm UTC](https://forum.kirupa.com/t/as3-cross-domain-policy/263501/3 "2008-06-16T18:59:46Z")

</div>

my file is actualy trying to acess a php file that generates an xml file and i need the flash player to localy acess it.

---

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [June 16, 2008, 8:53pm UTC](https://forum.kirupa.com/t/as3-cross-domain-policy/263501/4 "2008-06-16T20:53:05Z")

</div>

im pretty much looking for the AS3 equivalentto this

```auto

System.security.allowDomain("http://www.DOMAIN.net");
System.security.loadPolicyFile("http://www.DOMAIN.net/crossdomain.xml");

```

scratch that i figured it out

Security.allowDomain();  
Security.loadPolicyFile();

my exe still cant connect though any one have any ideas??
