Flash ExternalInterface上的flex沙盒错误

Flash ExternalInterface上的flex沙盒错误,flash,apache-flex,Flash,Apache Flex,我的Flex应用程序生成一个sanbox错误SecurityError:error#2060:违规安全sanbox:ExternalInterfacefile:///C:/Documents 和设置/test/Bureau/FPtest/4.5/flashproducts.swf无法访问file:///C:/Documents 和Settings/test/Bureau/FPtest/4.5/flashproducts.html 1)这在我将其发布到web上时有效,在我以文件形式打开HTML文件

我的Flex应用程序生成一个sanbox错误SecurityError:error#2060:违规安全sanbox:ExternalInterfacefile:///C:/Documents 和设置/test/Bureau/FPtest/4.5/flashproducts.swf无法访问file:///C:/Documents 和Settings/test/Bureau/FPtest/4.5/flashproducts.html

1)这在我将其发布到web上时有效,在我以文件形式打开HTML文件时无效://

2)params.allowscriptaccess=“始终”

3)我使用c:\flashprospects.html进行了测试(以避免文件路径中有空格)

4)在我的flex init中,我添加了:Security.allowDomain('*')

5)在我的flex init中

安全性。allowDomain('*')

ExternalInterface.addCallback(“setPage”,setPage);//这条线产生了一个问题:如果我删除它,一切正常


我想我真的做到了我所能做到的一切:那怎么了?

您可能正在不受信任的本地目录中运行SWF文件

将目录“C:\Documents and Settings\test\Bureau\FPtest\4.5”(或其父目录之一)添加到本地受信任目录列表

当前配置此设置的位置有所不同,具体取决于您使用的Flash Player版本和浏览器。旧的Flash Player设置管理器仍应工作,但:

只需将计划从中运行flash内容的目录添加到受信任位置列表中

这里有一个类似的问题:

这能帮到你吗?