main

FDT

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 flash.net::URLStream/load()
at flash.net::URLLoader/load()
at com.kafkaris::Main/loadXML()[/Users/Jono/Documents/workspace/XML Test/src/com/kafkaris/Main.as:28]
at com.kafkaris::Main/init()[/Users/Jono/Documents/workspace/XML Test/src/com/kafkaris/Main.as:21]
at com.kafkaris::Main()[/Users/Jono/Documents/workspace/XML Test/src/com/kafkaris/Main.as:15]

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!

JK

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 http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html as mentioned in the comments below has now resolved the issue for me.

ANOTHER EDIT – This may help also:
http://kafkaris.com/blog/2010/09/20/global-security-settings-panel-vs-on-osx/

5 comments

Leave a Reply

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


css.php