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?
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 with ProfilingFileOutputEnable
and PreloadSwf
.
Hope this helps!