为什么-use-network = false [英] Why -use-network=false
问题描述
这是在Project Properties中设置的是额外的编译器参数。
只有当我想读取像XML这样的外部文件的时候才可以。
其他人在我的团队不必有-use-network = false ????????????????????????????????????????????????????????????????????????????????????????团队不必使用-use-network = false,那么他们可能会建立全局信任权限。出于良好的安全原因,您无法通常使用Flash文件访问本地文件。当你正在开发,但你需要能够在本地访问文件。要做到这一点,你有两个选择:
$ b $ ol
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 ????
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:
- -use-network=false inverts the trust, but on deploying you have to revert it back;
- set global permissions so that within your dev folder, these rules don't apply: see this post for details
这篇关于为什么-use-network = false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!