# Crossdomain problem | Error #2044:

**URL:** <https://forum.kirupa.com/t/crossdomain-problem-error-2044/289515>\
**Category:** flash\
**Created:** [June 1, 2009, 8:42am UTC](https://forum.kirupa.com/t/crossdomain-problem-error-2044/289515 "2009-06-01T08:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ebru7](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@Ebru7](https://forum.kirupa.com/u/Ebru7)\
**Post date:** [June 1, 2009, 8:42am UTC](https://forum.kirupa.com/t/crossdomain-problem-error-2044/289515/1 "2009-06-01T08:42:58Z")

</div>

Please can somone help me with this.  
I have a webserverB. On it there is a .php file and a mySQL database. On a other server WebserverA I put some swf files. On server A there is also the file main.as. a piece of the code is this.

main.as

```auto

[LEFT][COLOR=#000084]function[/COLOR] loadtables(file,where):[COLOR=#000084]void[/COLOR]{
       [COLOR=#000084]var[/COLOR] request:URLRequest = [COLOR=#000084]new[/COLOR] URLRequest ("http[COLOR=#878787]//siteB/question.php");[/COLOR]
       request.method = URLRequestMethod.POST;
       [COLOR=#000084]var[/COLOR] variables:URLVariables = [COLOR=#000084]new[/COLOR] URLVariables();
       variables.tabelname = file;
       variables.wherestatement = where;
       request.data = variables;
       [COLOR=#000084]var[/COLOR] loader:URLLoader = [COLOR=#000084]new[/COLOR] URLLoader (request);
       loader.addEventListener(Event.COMPLETE, onComplete);
       loader.dataFormat = URLLoaderDataFormat.VARIABLES;
       loader.[COLOR=#000084]load[/COLOR](request);[/LEFT]
 
[LEFT] [COLOR=#000084]function[/COLOR] onComplete (event:Event):[COLOR=#000084]void[/COLOR]{
               [COLOR=#000084]var[/COLOR] variables:URLVariables = [COLOR=#000084]new[/COLOR] URLVariables( event.[COLOR=#000084]target[/COLOR].data );
               [COLOR=#000084]var[/COLOR] totalrecords=variables.total_records;
               enz..
       }
}[/LEFT]
 

```

error code

```auto
[COLOR=#999999]Error #2044: Unhandled SecurityErrorEvent:. text=Error #2140: Security sandbox violation: [/COLOR]

```

On my webserverB there is also a file “crossdomain.xml”.

crossdomain.xml

```auto

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="siteA" />
</cross-domain-policy>

```

What do i do to get rid of the error message.
