所以我对 Flex 项目做了一些分析,然后去构建一个发布版本。现在,当我导出发布版本时,它会给出运行时安全错误,表示它试图加载 ProfilerAgent.swf
错误#2044:未处理的安全错误:。 text=错误 #2048:安全沙箱违规:file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port= 9999 无法从 localhost:9999 加载数据。
错误#2044:未处理的安全错误:。 text=错误 #2048:安全沙箱违规:file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port= 9999 无法从 localhost:9999 加载数据。
即使当我退出、重新启动、点击 Flash Builder 4 时,它似乎也不会消失。我尝试通过命令行使用 mxmlc 进行手动编译,但当它从我的服务器运行时,我仍然收到该错误。有人对如何修复它有任何想法吗?
So I was doing some profiling on a Flex project and then went to go build a release build. Now when ever I export a release build it gives a runtime security error saying its trying to load the ProfilerAgent.swf
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:///Users/foobar/Documents/Adobe Flash Builder 4/.metadata/.plugins/com.adobe.flash.profiler/ProfilerAgent.swf?host=localhost&port=9999 cannot load data from localhost:9999.
Even when I exit, restart, punch Flash Builder 4 it doesn't seem to go away. I tried manually compiling using the mxmlc via the command line and I'm still getting that error when it is running from my server. Any one have any ideas on how to fix it?
发布评论
评论(2)
尝试根据 mm.cfg >这些说明。然后检查并注释(在行开头使用
#
)以ProfilingFileOutputEnable
和PreloadSwf
开头的行。希望这有帮助!
Try to locate
mm.cfg
in your OS according with these instructions. Then check and comment (using#
at the beginning of the line) lines starting withProfilingFileOutputEnable
andPreloadSwf
.Hope this helps!
打开 mm.cfg 并确保配置中有以下说明:
Open up mm.cfg and make sure the following instructions are in configuration: