I 'm using a socket instance in my mxml file.Every thing is going on well when Swf file is loaded from Flex Builder(in local system). But when move swf file is moved into unix serverr, it is throwing following error:
Security ErrorError #2048: Security sandbox violation: cannot load data from unixmachine:5696
I have gone through the flash player security documentations and done the following changes in my code:
socket = new flash.net.XMLSocket();
The content of the policy file is as follows:
<?xml version="1.0" ?>
<!DOCTYPE cross-domain-policy (View Source for full doctype...)>
<site-control permitted-cross-domain-policies="all" secure="false" />
<allow-access-from domain="*" to-ports="*" secure="false" />
Even after adding the policy file, I 'm getting same security error. Please let me know, if any other modifications needs to be done.
You might need to set the --use-network=true compiler option.
Project - Properties - Flex Compiler
add --use-network=true to the "Additional compiler arguments:" section.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services
Thanks for your response. I have already used the compiler argument that you have specified.Kindly let me know, if there is any other solution.