SecurityError: Error # 2148: SWF file

I am fresh to the flash project. I am using the Flash Develop IDE. I am creating a simple slide show. It works great in FD while running. I move this swf file, the desired image folder and xml file to desktop.now we run this swf file, which works fine. He shows

SecurityError: Error # 2148: SWF file: /// C | /Users/king/Desktop/bin/MyHeart.swf cannot access the local resource file: /// C | / Users / king / Desktop / bin / heart_broke.png. Only the local file system and trusted local SWF files can access local resources. on flash.display :: LoaderInfo / get content () in function / () [D: \ FlashProjects \ My Heart \ src \ Main.as: 62]

I am a little confused by this problem. is there any way to handle this. thanks in advance.

+8
flash slideshow
source share
2 answers

Visit the Flash Player Global Security Settings Panel .

Then:

  • Click Always Allow
  • Click Edit Locations
  • Click Add Location
  • Click Browse For Folder
  • Choose the location where your SWF will be located.
  • Click Confirm

This should solve your problem.

+19
source share

In version 22.0.0.209 Flash version:

Open Flash Player Settings Manager
-> Advanced Search -> Reliable Location Settings
-> Add (folder or file)

0
source share

All Articles