# Security sandbox violation 2121

**URL:** <https://forum.kirupa.com/t/security-sandbox-violation-2121/252569>\
**Category:** flash\
**Created:** [February 21, 2008, 10:30am UTC](https://forum.kirupa.com/t/security-sandbox-violation-2121/252569 "2008-02-21T10:30:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madster](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/madster/32/366_2.png) [@Madster](https://forum.kirupa.com/u/Madster)\
**Post date:** [February 21, 2008, 10:30am UTC](https://forum.kirupa.com/t/security-sandbox-violation-2121/252569/1 "2008-02-21T10:30:34Z")

</div>

Hi guys,

I am going crazy, so now was the time to post 😉

I have two swf-files, lets call them A and B.

Each one is hosted on a seperate domain, both are standard http-domains.

A is loading B using the Loader class, but when it does, it throws a security sandbox violation error 2121.  
The error is thrown at exactly the point in my code, where A tries to interact with B, by accessing some of its properties.

However, I think I have done everything I can to get it to work:

Both domains have a crossdomain.xml file which allows access for all (\*), and I even force them to load it by using Security.loadPolicyFile().

Both files include the code:  
Security.allowDomain("\*");

In the html-code containing file a, I also have:  
allowScriptAccess=always.

And, now I am all out of ideas, what else can I possible do?

Thanks in advance!

/Mads
