Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 SecureSocket.isSupported==false_Actionscript 3_Security_Sockets - Fatal编程技术网

Actionscript 3 SecureSocket.isSupported==false

Actionscript 3 SecureSocket.isSupported==false,actionscript-3,security,sockets,Actionscript 3,Security,Sockets,我尝试使用SecureSocket,但SecureSocket.isSupported==false。 当我使用简单的插座时,一切都正常 有人用过安全插座吗 这是我的密码: 安全。允许域(“”); 安全性。allowInsecureDomain(“”); loadPolicyFile(“xmlsocket://“+host+”:“+port+”/crossdomain.xml”) 后来我发现了一个错误: [SWF]/assets/flash/ssl/Main.SWF-解压缩后的63146字节 错

我尝试使用SecureSocket,但SecureSocket.isSupported==false。 当我使用简单的插座时,一切都正常

有人用过安全插座吗

这是我的密码: 安全。允许域(“”); 安全性。allowInsecureDomain(“”); loadPolicyFile(“xmlsocket://“+host+”:“+port+”/crossdomain.xml”)

后来我发现了一个错误: [SWF]/assets/flash/ssl/Main.SWF-解压缩后的63146字节 错误:请求位于的资源tlssocket://game9.lgr.su:8081 由于无法访问服务器,来自的请求者已失败

*安全沙盒冲突*
与game9.lgr.su:8081的连接已暂停-不允许从

服务器端出现问题。节点JS上的服务器端正在侦听不安全的套接字,但正在获得安全连接。所以当服务器以未加密的内容响应时,客户端的套接字就关闭了。
所以,做一个更好的服务器。

下面是来自服务器的跨域:您找到答案了吗?
            if(SecureSocket.isSupported)
            {
                c = new SecureSocket();
                receiveBuffer = new ByteArray();
                receiveBuffer.endian = Endian.LITTLE_ENDIAN;

                c.addEventListener(Event.CLOSE, closeHandler);
                c.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                c.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

                c.addEventListener(Event.CONNECT, connectHandler);
            }

            else
            {
                try
                {
                    c = new SecureSocket();
                }
                catch(e:Error)
                {
                    trace(e.toString());
                }
        }