Flex安全沙箱问题
在你要访问的网站下面也要放一个crossdomain.xml
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" secure="false" />
<allow-http-request-headers-from domain="*" headers="*" secure="false"/>
</cross-domain-policy>
Flex代码中添加:
Security.allowDomain("*");
Security.loadPolicyFile("http://domain/crossdomain.xml");