发生ActionScript错误

来源:百度知道 编辑:UC知道 时间:2024/05/22 13:07:59
总是弹出Adobe flash player对话框,标题是:发生ActionScript错误,内容是:SecurityError: Error #2060: 安全沙箱冲突:ExternalInterface 调用者 http://img.hupo.tv/hupo/tv/ding.swf 不能访问 http://www.hupo.tv/tv/201520.html
at flash.external::ExternalInterface$/flash.external:ExternalInterface::_initJS()
at flash.external::ExternalInterface$/call()
at ding_fla::MainTimeline/ding_fla::frame1()
对话框关闭不了,这个问题怎么解决?
用360安全卫士关闭了几个可疑进程,此问题已解决。
不过其中有一个进程:Sevcha.exe关掉后再重启机又出现了,这个问题怎么解决?

可能是安全沙箱的问题。因为两个网站的domain不同,一个是img.hupo.tv,一个是www.hupo.tv。你可以尝试在www.hupo.tv网站根目录放置一个策略文件,名称必须为crossdomain.xml。

以下是一个策略文件的示例,该策略文件允许从 foo.com 上的 Flash 文档访问来自 foo.com、friendOfFoo.com、*.foo.com 和 105.216.0.40 的 Flash 文档:
<?xml version="1.0"?>
<!-- http://www.foo.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="www.friendOfFoo.com" />
<allow-access-from domain="*.foo.com" />
<allow-access-from domain="105.216.0.40" />
</cross-domain-policy>

里面加上<allow-access-from domain="img.hupo.tv" />一行。