我正在尝试使用XMLSocket.swf文件,但它无法连接。我需要在我的服务器上打开端口吗?我正尝试在一个专用的远程Windows2008服务器上运行它。
下面是来自FlashFirebug的错误:
OK: Root-level SWF loaded: file:///C|/Users/vcaadmin/AppData/Roaming/Mozilla/Firefox/Profiles/70vbx4ys.default/extensions/flashfirebug%40o%2Dminds.com/chrome/content/flashfirebug.swf
OK: Root-level SWF loaded: http://speak-tome.com/flash/XMLSocket.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://speak-tome.com:9997 by requestor from http://speak-tome.com/flash/XMLSocket.swf
Error: Failed to load policy file from xmlsocket://speak-tome.com:9997
Error: Request for resource at xmlsocket://speak-tome.com:9997 by requestor from http://speak-tome.com/flash/XMLSocket.swf has failed because the server cannot be reached.我的crossdomain.xml保存在web目录的根目录下,如下所示:
<?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="master-only"/>
<allow-access-from domain="*"/>
<allow-http-request-headers-from domain="*" headers="SOAPAction"/>
</cross-domain-policy>发布于 2013-02-19 03:59:31
我认为答案的第一部分是,您需要使用this answer中提到的xmlsocket策略服务器。
https://stackoverflow.com/questions/10431487
复制相似问题