I am trying to load a XML file in a Flex and BlazeDS based application.
It gives me this error:
SecurityError: Error #2148: SWF file http://localhost:8080/XYZ1/XYZ1I-debug/XYZ.swf cannot access local resource file:///C:\Documents and Settings\Adobe Flash Builder 4 Plug-in\AAA\src\assets\test\imagesOutput.xml. Only local-with-filesystem and trusted local SWF files may access local resources.
I already tried the following options:
1. adding the -use-network=false to compiler options
2. Selected "Always Allow" in Global Privacy Settings panel
3. using URLLoader instead of <fx:XML id="xml" source ="<Local file system path>" />
Please let me know if how can i get rid of this problem.
Thanks in advance.
either serve imagesOutput.xml from an http server or change your run configuration to run XYZ.swf from a file:// URL.