警告: 域 xx 没有指定元策略。

canca13年前 (2011-07-09)Flex257

警告: 域 xxx.xxx.xxx.xxx没有指定元策略。将应用默认元策略 'master-only'。此配置已停用。请访问http://www.adobe.com/go/strict_policy_files_cn 以解决此问题。

出现这个错误大部分是由于安全策略文件错误所致,使用以下代码即可解决

Security.loadPolicyFile("http://xxx.xxx.xxx.xxx/crossdomain.xml");

crossdomain.xml 策略文件:
<?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="all" />
    <allow-access-from domain="*" />
    <allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

相关文章

Flex中[Bindable]的使用心得

在Flex编程中,Bindble使用到最多的元数据。该标签可以应用在变量或者类或者方法上。同在在MXML中使用”{}”引用设置为Bindable的变量,从而实现对于变量赋值与界面元素的自动同步。...

flex 动画总结

flex自带动画效果:   Blur            ...

Repeater 相关的几个重要属性和方法

Repeater类的几个重要属性和方法: currentItem getRepeaterItem() instanceIndices repeaters repeaterIndices下面逐一说明:...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。