I created a project which has images involved. the program runs fine
in FLEX workspace. but as I make a copy and place it on to anywhere
else except the workspace, there is a Security message comes up.
have done some search as trying to create a crossdomain.xml file, but
so far i have not been successful yet.
is there any suggestion, pls!
thanks!
This is probably because all flex swfs are using local-with-network as the
default sandbox, hence it won't have access to the local files (including
images), one suggested solution is to add extra compiler argument:
1. project property > flex compiler
2. add this "-use-network=false" to "additional compiler arguments" field
3. then recompile the swf
See if this solve the security problem.
Jeremy.
本文讨论了一个关于Flex项目中图片加载遇到的安全问题。当项目从原始工作空间复制到其他位置时,会出现安全警告。文章提供了解决方案,即通过调整编译器参数来允许项目访问本地文件。
3420

被折叠的 条评论
为什么被折叠?



