我正在尝试使用 XMLSocket.swf 文件,但它没有连接。我需要在我的服务器上打开一个端口吗?我正在尝试在专用的远程 Windows 2008 服务器上运行它。
这是来自 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>