Fonkie's CNBLOG

学无止境

 

swf不能访问本地资源解决办法

开发环境:Windows Server 2003 + Adobe Flash Builder 4  Beta 2

错误信息:SecurityError: Error #2148: SWF 文件 D:\demo\test\index.swf 不能访问本地资源 D:\demo\test\bin-debug\textLayout_4.0.0.10485.swf。只有仅限于文件系统的 SWF 文件和可信的本地 SWF 文件可以访问本地资源。
 at flash.net::URLStream/load()
 at flash.net::URLLoader/load()

解决方法:
在C:\WINDOWS\system32\Macromed\Flash\FlashPlayerTrust目录下添加一个文件,比如:1.txt(文件名可任意起),文件内容为:“D:\demo\test\”即项目的路径,当然也可以设置为“D:\”

posted on 2010-01-11 10:16  Fonkie  阅读(1659)  评论(3编辑  收藏  举报

导航