1 Reply Latest reply on Jun 26, 2009 2:52 PM by Flex harUI

    HTTP via Socket -> Crossdomain Problem

    Florian Walch



      We try to communicate with a webserver via a flash.net.socket. For that we implemented our own HTTPService class. We could not use the HTTPService class from Flash/ Flex, because we need the responseUrl from the response.


      The problem is that the Flash Sandbox tries to load the crossdomain.xml with the request “<policy-file-request/>”, but the webserver can only handle HTTP requests.


      Is there a possibility to load the crossdomain.xml with HTTP via the socket? Could we force the socket to be a HTTP socket? Or how could we use a HTTP low level socket class were we have access to the response header? This was possible in AS2 with HTTPStatusEvent -> but not possible in AS3.


      thanks for help