# Adobe Air Security

**URL:** <https://forum.kirupa.com/t/adobe-air-security/269530>\
**Category:** flash\
**Created:** [August 28, 2008, 4:48pm UTC](https://forum.kirupa.com/t/adobe-air-security/269530 "2008-08-28T16:48:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![firdosh](https://avatars.discourse-cdn.com/v4/letter/f/ba8739/32.png) [@firdosh](https://forum.kirupa.com/u/firdosh)\
**Post date:** [August 28, 2008, 4:48pm UTC](https://forum.kirupa.com/t/adobe-air-security/269530/1 "2008-08-28T16:48:59Z")

</div>

Hey everyone,  
I have a air application that loads a external swf which is a small drawing widget and needs access to stage listenerers. So I added the swf to the applicationDirectory and loaded it from there.  
: loader.contentLoaderInfo.sameDomain = false

loader.contentLoaderInfo.parentAllowsChild = true  
loader.contentLoaderInfo.childAllowsParent = true

Shouldnt the sameDomain be = true and not false ?.  
But since both the allowChild and allowParent are true , everything runs smooth

Now when I package and deploy the application the swf still gets loaded from the applicationDirectory but now the parentAllowsChild property is always false

I dont understand why in FlexBuilder it works but not when I deploy the application.

Any help would be appreciated 🙂

Thanks  
Cheers  
Firdosh
