Use socket to receive binary data but the flash player keeps showing unhandled security problem
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?
