Flex中解决Error #2044 securityError[转]


在FlexBuilder中运行app没有问题,复制项目的 bin-debug 文件夹给同事看,报错

Error #2044: 未处理的 securityError:。 text=Error #2140: 安全沙箱冲突:file:///C|/Documents%20and%20Settings/aaa/桌面/flexproject/bin%2Ddebug/main.swf 不能加载 file:///C|/Documents%20and%20Settings/aaa/桌面/flexproject/bin%2Ddebug/assets/swf/loading.swf。仅限于文件系统的 SWF 文件和仅限于网络的 SWF 文件不能彼此加载。
 

解决办法如下

 

右键 project -> properties -> Flex Compiler -> Compiler options -> Additional compiler arguments 中添加

 

 -use-network=false

 

保存后再编译就解决了。

posted @ 2009-06-18 09:55  Pynix  阅读(2331)  评论(0编辑  收藏  举报