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
[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
[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
<?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.