Skip to main content
November 9, 2013
Question

Use socket to receive binary data but the flash player keeps showing unhandled security problem

  • November 9, 2013
  • 1 reply
  • 984 views

Hi,

        I am implementing an application to send/receive binary data from server. I study the documentation of security file of socket but it still doesn't work. My code are as follow,

Actionscript:

          suckit = new Socket("www.mysite.com", 843);

          suckit.writeUTFBytes("Hello server");

          suckit.flush();

Security file:

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<site-control permitted-cross-domain-policies="all"/>

<allow-access-from domain="*.mysite.com" to-ports="843, 3496" />

</cross-domain-policy>

On the server side, the socket receives <policy-file-request/> and then write the security file to my client side flash application. However, my flash application seems to keep receiving

"Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: https://www.mysite.com/videoplayer.swf cannot load data from www.mysite.com:843."

Can someone give me some suggestions of solving this problem? Or else, is there any other way to receive binary data from server side?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
November 9, 2013

are two different servers involved here?

November 9, 2013

Thank you for your reply. No, only one server involved.

kglad
Community Expert
Community Expert
November 9, 2013

then you must control the socket server.  are you sure it's setup correctly?