Adobe Flash Player Security

Ever got the following error and never found out how to solve it? Here’s the solution.

Error:

Adobe Flash player has stopped a potentially unsafe operation.
The following local application ….
C:\somewhere\file.swf
is try to communicate with…
somedomain.com
To let this app…

Solution:
Create a file with the extension .cfg in the <user>/macromedia/Flash_Player/#Security/FlashPlayerTrust folder (under windows XP this will be: C:\Documents and Settings\_username_\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust) and create two lines in it using a regular text editor.

C:\somewhere\
http://somedomain.com

Save the file and rerun your application.

Error checking

I ran into the really nice problem of not being able to use Flash’s build in classes today.

Two things to check when you get an error like “The class or interface ‘flash.display.BitmapData’ could not be loaded.”

  1. Flash player settings in the publish settings
  2. The class paths

Turns out I had the player settings wrong. Pretty easy to overlook and it gives you a lot of aggravation.