Ultrashock Forums > Flash > ActionScript
AS3 - HTTP via Socket -> Crossdomain Problem

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS3 - HTTP via Socket -> Crossdomain Problem
Old 2009-06-26

Hello,

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.
postbit arrow Be the first to comment! | 125 views postbit arrow Reply: with Quote   
Registered User
matthias_omq is offline
seperator
Posts: 1
2009-06-26
matthias_omq lives in Germany
seperator
Thread Tools
Display Modes Rate This Thread
Rate This Thread: