Flash Security “Local-with-filesystem”
Normally when I am working on projects my projects are fairly small, loading some external xml, images, movies etc. and that is no problem getting around the Flash Players security by passing the compiler the -use-network=”false”
However when working on larger projects, using local xml and socket connection it is not enough to add the use-network=”false” as a compiler argument, than you will still get a “Error #2010: Local-with-filesystem SWF files are not permitted to use sockets.” error, to get around this one you need to add the swf file of your project to the Flash Players list of trusted files, if you are fairly organized you only have to add the path to the folder where you keep all your projects.
On os x go to /Users/your-user-name/Library/Preferences/Macromedia/Flash Player/#Security/FlashPlayerTrust
On Windows go to C:\Documents and Settings\your-user-name\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust
Here you’ll find a flexbuilder.cfg file, this is just a text file, open it in a text editor and add the path to the folder where you keep your projects, mine is /Users/morten/projects/ save the file and keep the .cfg extension and that is it!
Posted: December 7th, 2008 under Actionscript.
Tags: Actionscript
Comments: none

