0 Replies Latest reply on Feb 20, 2012 5:05 AM by newgen2549

    InvokeFailed:Error #2148:

    newgen2549

      hi all,

      I get this error and using flex 4.5 and do not know how to fix it

      can someone help please, how do I fix this?

      thanks

      Daniel

       

      // Load pods.xml, which contains the pod layout.

                      var httpService:HTTPService = new HTTPService();

                      httpService.url = "data/pods.xml";

                      httpService.resultFormat = "e4x";

                      httpService.addEventListener(FaultEvent.FAULT, onFaultHttpService);

                      httpService.addEventListener(ResultEvent.RESULT, onResultHttpService);

                      httpService.send();

      // faultevent

       

      [SWF] C:\_dashboard\Dashboard2\bin-debug\main.swf - 3,193,154 bytes after decompression

      *** Security Sandbox Violation ***

      Connection to data/pods.xml halted - not permitted from file:///C:/_dashboard/Dashboard2/bin-debug/main.swf

      InvokeFailed:Error #2148: SWF file file:///C:/_dashboard/Dashboard2/bin-debug/main.swf cannot access local resource data/pods.xml. Only local-with-filesystem and trusted local SWF files may access local resources.

      [Unload SWF] C:\_dashboard\Dashboard2\bin-debug\main.swf