2 Replies Latest reply on Jan 16, 2010 3:55 AM by Sandeep Reddys

    Security ErrorError #2048: Security sandbox violation with xmlSocket

    Sandeep Reddys

      Hi,
      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();
        Security.loadPolicyFile("http://myunixmachine.com:37850/UCweb/crossdomain.xml"); 
                  Security.allowDomain("myunixmachine");                                
      socket.connect("myunixmachine", 3001);
       
      The content of the policy file is as follows:
         <?xml version="1.0" ?> 
         <!DOCTYPE cross-domain-policy (View Source for full doctype...)> 
        <cross-domain-policy>
         <site-control permitted-cross-domain-policies="all" secure="false" /> 
         <allow-access-from domain="*" to-ports="*" secure="false" /> 
         </cross-domain-policy>
       
      Even after adding the  policy file, I 'm getting same security error. Please let me know, if any other modifications needs to be done.