4 Replies Latest reply on Feb 4, 2007 6:24 PM by Flex2.0ing...

    God saveme! securitySandboxError   problem!

      Hi,I'am using flash 8 ,while I try to use file.upload method to upload file,if url parameter in local web server,it works well!
      but it won't work if upload to another web server ,it report the "securitySandboxError",
      first ,I write "<param name="allowScriptAccess" value="always" /> " in HTML file that include the swf file
      second, I write
      System.security.loadPolicyFile(" http://localhost:8080/SKD/policy.xml");
      in my flash source file

      the policy.xml is blow:
      <?xml version="1.0"?>
      <!DOCTYPE cross-domain-policy SYSTEM " http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
      <allow-access-from domain="*" to-ports="80,65535" />

      I have done all that I need to do ,but still fail! ,please tell me how to solve the problem! thanks a lot!