Working with Flash sometimes is a pain, not because of the product itself but because of all the restrictions that Macromedia/Adobe had to implement into the Flash player to make it a “safe” plugin.
One of those restrictions is that a local SWF movie cannot access local files. This makes perfect sense otherwise I wouldn’t be able to write this post because somebody would have destroyed my machine in no time
but if you are a Flash Developer sometimes that restriction cause you to set up a webserver and upload your movie to test/debug it.
I use FDT/Eclipse on MAC OS X to develop Flash applications and I know you can setup your debugger to launch your SWF using the “Air Debug Launcher” and that gives you the ability to load local files, but what if I want to test my application with a new Flash Player or old one? I want to be able to use “Adobe Flash Player”.
To do that you need to create/edit a file on your machine as Adobe explain here Adobe Flash Player 9 Security Whitepaper.
But to make it easy here is what you need to do for each OS:
Mac:
open the following folder:
/Library/Application Support/Macromedia/FlashPlayerTrust
here create a file with a .cfg extension
dev.trust.cfg
now open that file and add a sequence of folder where you want the Flash Player to be able to load local files
N.B. This is applied recursively to all the subfolders
/Users/youruser/yourpath
/Users/youruser/yourotherpath
…
Windows:
open the following folder:
C:\Documents and Settings\[YourUser]\Application Data\Macromedia\Flash Player\#Security\FlashPlayerTrust
here create a file with a .cfg extension
dev.trust.cfg
now open that file and add a sequence of folder where you want the Flash Player to be able to load local files
c:/dev
c:/workspace
…
Linux:
look here http://www.abdulqabiz.com/blog/archives/2007/03/20/flash-player-trust-flashplayertrust-on-gnulinux/
Flash Player trust file (Mac, Windows and Linux)
Working with Flash sometimes is a pain, not because of the product itself but because of all the restrictions that Macromedia/Adobe had to implement into the Flash player to make it a “safe” plugin.
One of those restrictions is that a local SWF movie cannot access local files. This makes perfect sense otherwise I wouldn’t be able to write this post because somebody would have destroyed my machine in no time
but if you are a Flash Developer sometimes that restriction cause you to set up a webserver and upload your movie to test/debug it.
I use FDT/Eclipse on MAC OS X to develop Flash applications and I know you can setup your debugger to launch your SWF using the “Air Debug Launcher” and that gives you the ability to load local files, but what if I want to test my application with a new Flash Player or old one? I want to be able to use “Adobe Flash Player”.
To do that you need to create/edit a file on your machine as Adobe explain here Adobe Flash Player 9 Security Whitepaper.
But to make it easy here is what you need to do for each OS:
Mac:
open the following folder:
here create a file with a .cfg extension
now open that file and add a sequence of folder where you want the Flash Player to be able to load local files
N.B. This is applied recursively to all the subfolders
Windows:
open the following folder:
here create a file with a .cfg extension
now open that file and add a sequence of folder where you want the Flash Player to be able to load local files
Linux:
look here http://www.abdulqabiz.com/blog/archives/2007/03/20/flash-player-trust-flashplayertrust-on-gnulinux/