的XMLSocket在Firefox而不是IE工作 [英] XMLSocket working in firefox but not IE

查看:197
本文介绍了的XMLSocket在Firefox而不是IE工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在帮谁拥有了Flash应用程序的问题的客户。闪存应用程序使用一个XMLSocket连接到本地主机上运行的服务。它的Firefox下正常工作。

I'm helping a customer who has a problem with a flash app. The flash app uses an XMLSocket to connect to a service running on localhost. It works fine under firefox.

它使用以下行来设置安全策略:

It uses the following line to setup the security policy:

System.security.loadPolicyFile(的xmlsocket://本地主机:10032);

System.security.loadPolicyFile("xmlsocket://localhost:10032");

火狐下运行的Flash应用程序,服务监听端口10032获取与℃的连接;政策性文件的请求/>中响应它,它工作得很好。在IE浏览器,服务永远不会连接,并随后套接字连接不工作。

Running the flash app under firefox, the service listening on port 10032 gets a connection with a <policy-file-request/>, responds to it, and it works well. Under IE, the service never gets the connection and the subsequent socket connection do not work.

编辑: 要在一个隐藏的div标签嵌入闪存造成原来的问题。在这种情况下,拒绝发送策略文件的请求。随着DIV不是隐藏它的工作原理。关于不同版本的FF和IE浏览器的闪存的答案是正确的,这就是为什么它在FF工作(这是一个旧版本)。较新的版本不喜欢隐藏的DIV标签。

The problem turned out to be caused by embedding flash in a hidden div tag. In that case it refused to send out the policy file request. With the div not hidden it works. The answer about different versions of flash between FF and IE was right on, that's why it was working in FF (it was an older version). The newer version didn't like the hidden DIV tag.

推荐答案

您一定闪光灯完全相同的版本是在两个浏览器中运行?对网络安全的要求似乎版本之间显著改变。这是完全有可能有不同的版本安装到IE和Firefox的Flash Player为一体是一个ActiveX控件和其他浏览器插件。

Are you certain the exact same version of flash is running on both browsers? The requirements for network security seem to have changed significantly between versions. It's entirely possible to have different versions of flash player installed into IE and firefox as one is an activeX control and the other a browser plugin.

这篇关于的XMLSocket在Firefox而不是IE工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆