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:

/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/

This entry was posted in Flash, MAC OS X and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.
  • Marcus

    I tried this without success.

    I added the folder at: /Library/Application Support/Adobe/FlashPlayerTrust/

    named a simple text file : dev.trust.cfg

    and added the file with
    /Users/marcuskirsch/Documents/–JOBS/0064SCMI/201006AntennaFuture/DEV/AntennaNewsHub/bin-debug/xml

    when I debugged on FDT using adobe Flash Player it threw the same sandbox violation

  • Marcus

    I tried this without success.

    I added the folder at: /Library/Application Support/Adobe/FlashPlayerTrust/

    named a simple text file : dev.trust.cfg

    and added the file with
    /Users/marcuskirsch/Documents/–JOBS/0064SCMI/201006AntennaFuture/DEV/AntennaNewsHub/bin-debug/xml

    when I debugged on FDT using adobe Flash Player it threw the same sandbox violation

  • Anonymous

    Hi Marcus,

    I can see a difference between the path you are using and the one I suggested

    try changing Adobe with Macromedia

    like

    /Library/Application Support/Macromedia/FlashPlayerTrust/

    let me know if this solves your issue

    cheers
    Simone

  • vizio

    Hi Marcus,

    I can see a difference between the path you are using and the one I suggested

    try changing Adobe with Macromedia

    like

    /Library/Application Support/Macromedia/FlashPlayerTrust/

    let me know if this solves your issue

    cheers
    Simone

blog comments powered by Disqus