# How to secure SWFs in same domain name?

**URL:** <https://forum.kirupa.com/t/how-to-secure-swfs-in-same-domain-name/303707>\
**Category:** flash\
**Created:** [January 25, 2010, 3:56pm UTC](https://forum.kirupa.com/t/how-to-secure-swfs-in-same-domain-name/303707 "2010-01-25T15:56:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qpixo](https://avatars.discourse-cdn.com/v4/letter/q/c4cdca/32.png) [@qpixo](https://forum.kirupa.com/u/qpixo)\
**Post date:** [January 25, 2010, 3:56pm UTC](https://forum.kirupa.com/t/how-to-secure-swfs-in-same-domain-name/303707/1 "2010-01-25T15:56:02Z")

</div>

I want to secure and to load two SWFs files from the same domain, does anyone have any examples and methods applying with allowDomain() that can be used to allow the SWFs to communicate and share data and functions.

ex: [www.example.com](http://www.example.com)  
main.swf

about.swf (child)  
contact.swf (child)  
…

Most articles that I found it’s based on cross-domain which is not what I want.
