SWF 文件不能访问本地资源 只有仅限于文件系统的 SWF 文件和可信的本地 SWF 文件可以访问本地资源[转载]

文章分类:Flash编程

错误信息: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:\”

相关文章:

  • 2021-08-29
  • 2021-11-21
  • 2022-02-17
  • 2022-12-23
  • 2021-08-04
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案