FDT – XML Security Sandbox Violation

May 12, 2010

Little problem that needed a little line to fix:

If you get this error in FDT when trying to load a XML file with paths obviously pointing to your own workspace and project:

*** Security Sandbox Violation ***
Connection to xml/sample.xml halted – not permitted from file:////Users/Jono/Documents/workspace/XML Test/bin/Main.swf
Exception fault: SecurityError: Error #2148: SWF file file:////Users/Jono/Documents/workspace/XML Test/bin/Main.swf cannot access local resource xml/sample.xml. Only local-with-filesystem and trusted local SWF files may access local resources.
at com.kafkaris::Main/loadXML()[/Users/Jono/Documents/workspace/XML Test/src/com/kafkaris/]
at com.kafkaris::Main/init()[/Users/Jono/Documents/workspace/XML Test/src/com/kafkaris/]
at com.kafkaris::Main()[/Users/Jono/Documents/workspace/XML Test/src/com/kafkaris/]

You correct it by doing the following:

– In the Debug Configurations, click on the Compiler Arguments tab.
– Go to the end of the line and type in: -use-network=false
– Apply the change and click Debug.

And you are now loading XML error free! woo!


PS – When configured right, I’m enjoying FDT more every day!

EDIT – I had to re-install FDT for a reason but since doing so found that allowing access through as mentioned in the comments below has now resolved the issue for me.

ANOTHER EDIT – This may help also:


Leave a Reply

Your email address will not be published. Required fields are marked *