我正在尝试使用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>