0 Replies Latest reply on Dec 1, 2008 4:13 AM by

    Flex - Python Socket Server

      I need to establish a binary socket connection between flex and python socket server, but I keep receiving the following error in flex:

      Error #2048: Security sandBox violation
      http://localhost/test/bin/test/swf cannot load data from 192.168.1.208:12321


      I'm [as client] running on openSUSE 11, and I have flash debugger installed following this article:
      http://www.adobe.com/go/strict_policy_files
      And my server is running on ubuntu 8.04

      The only issue I've noticed that when I comment the following ActionScript line in test.mxml:

      Security.loadPolicyFile("xmlsocket://"+host+":"+port);

      I receive the following error in policyfiles.txt:
      quote:

      OK: Root-level SWF loaded: http://localhost/test/bin/test.swf
      OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.1.208:12321 by requestor from http://localhost/test/bin/test.swf
      Warning: Timeout on xmlsocket://192.168.1.208:12321 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.
      Error: Request for resource at xmlsocket://192.168.1.208:12321 by requestor from http://localhost/test/bin/test.swf is denied due to lack of policy file permissions.


      Otherwise there is no errors produced in policyfiles.txt:
      quote:

      OK: Root-level SWF loaded: http://localhost/hafez/bin/hafez.swf
      OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.1.208:12321 by requestor from http://localhost/test/bin/test.swf


      Please HELP!
      My testing files as follows: