Socket connection in browser

Hello,

  I am using flash socket to connect to ftp and upload files. Its working fine in flash IDE but it give security error in browser. I have loaded policy file by Security.loadpolicyFile() also i have specified Security.allowDomain("*") but still it doesnt work. I have placed my crossdomain.xml at root level on ftp. 

 My crossdomain.xml looks like this..

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

    <cross-domain-policy>
    
    <site-control permitted-cross-domain-policies="master-only"/>
    
    <allow-access-from domain="*" to-ports="*" />
    
    <allow-access-from domain="*" to-ports="*" />
    
    </cross-domain-policy>

Yet there is security error…

Can anyone help me?