Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SecurityError: Error #2148: SWF file file

i am fresher to the flash devekopment. i'm using Flash Develop IDE. i am creating a simple slide show. it works fine in FD when running. i'm moving that swf file ,required image folder and xml file to desktop.now we run that swf file it's working fine. it shows

SecurityError: Error #2148: SWF file file:///C|/Users/king/Desktop/bin/MyHeart.swf cannot access local resource file:///C|/Users/king/Desktop/bin/heart_broke.png. Only local-with-filesystem and trusted local SWF files may access local resources. at flash.display::LoaderInfo/get content() at Function/()[D:\FlashProjects\My Heart\src\Main.as:62]

i am little confused with this issue. is there any way to handle it. thanks in advance.

like image 997
krish Avatar asked Feb 07 '12 21:02

krish


3 Answers

@Marty Answer not works for me now a days.

To access flash players settings, In Windows, You have to go to the installation path, generally C:\Windows\SysWOW64\FlashPlayerApp.exe
Clikc on Advanced Tab, then the second button (Trust location configuration) and click in add and add your folder where is your swf.

That way, you give permissions on the folder where your swf cannot access the local files

enter image description here enter image description here

like image 91
emmanuel sio Avatar answered Nov 08 '22 19:11

emmanuel sio


Visit the Flash Player Global Security Settings Panel.

Then:

  1. Click Always Allow
  2. Click Edit Locations
  3. Click Add Location
  4. Click Browse For Folder
  5. Select the location that your SWF will be located at.
  6. Click Confirm

This should solve your issue.

like image 20
Marty Avatar answered Nov 08 '22 18:11

Marty


In 22.0.0.209 Flash version:

Open Flash Player Setting Manager
-> Advanced
-> Trusted Location Settings
-> Add (folder or file)

like image 2
Viet Anh Do Avatar answered Nov 08 '22 18:11

Viet Anh Do