1 sockets security flash policy actionscript
有没有人能够成功实现服务以向FlashPlayer提供所需的套接字策略文件?
我正在运行Adobe提供的服务的Python实现
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
Run Code Online (Sandbox Code Playgroud)
并使用以下策略文件:
<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="master-only"/>
<allow-access-from domain="*" to-ports="*" secure="false"/>
</cross-domain-policy>
Run Code Online (Sandbox Code Playgroud)
并从Flash接收此消息:
[SecurityErrorEvent type="securityError" bubbles=false
cancelable=false eventPhase=2
text="Error #2048:
Security sandbox violation: http://www.mapopolis.com/family/Tree.swf
cannot load data from www.mapopolis.com:1900."]
Run Code Online (Sandbox Code Playgroud)
谢谢.
小智 6
现在有一个Apache webserver到服务器套接字策略文件的模块,它与新的Flash 9.whatever和Flash 10+兼容,它们需要使用Adobe套接字协议提供套接字策略文件.
http://www.beamartyr.net/articles/adobepolicyfileserver.html