Search code examples
apache-flex

Why -use-network=false


Dose anyone knows why I have to use -use-network=false in my Flex Builder?!?!?!

This is set inside the Project Properties and is Additional compiler argument.

This is only when I want to read in a external file like XML.

Others in my team doesn't have to have -use-network=false ????


Solution

  • If other members of your team don't have to use -use-network=false then they probably have global trust permisions set up. You can't access local files with a Flash file ordinarily, for good security reasons. When you're developing though you need to be able to access files locally. To do that, you have two options:

    1. -use-network=false inverts the trust, but on deploying you have to revert it back;
    2. set global permissions so that within your dev folder, these rules don't apply: see this post for details