0 Replies Latest reply on Oct 14, 2009 3:12 AM by hitesh.rawat

    Error 2148

    hitesh.rawat Level 1

      Hi all,

       

      I made a samll app. which takes path from a .xml file and then play the target swf on screen. It working till yesterday......however don't know why it started giving me the following error


      SecurityError: Error #2148: SWF file http://localhost/tool-debug/tool.swf cannot access local resource file:///C:\Users\hitesh\Desktop\Data For The Reviewer's Tool\swf for Testing prupose\slide6.swf. Only local-with-filesystem and trusted local SWF files may access local resources.
          at flash.display::Loader/_load()
          at flash.display::Loader/load()
          at app::MyClass/XMLSource()[D:\Work Space\tool\src\app\MyClass.as:90]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at flash.net::URLLoader/onComplete()

       

      I looked up the internet and found some tips to rectify this issue but it didn't work. I created a crossdomain.xml and placed it at the right place, i think. I also changed the FLEX COMPILER properties to -locale en_US -use-network=false.

       

      When i tried to run the file .swf directly from the location or the bin folder.......it worked fine.

       

      Some Suggestions plz.....

       

      Thanks..

      H.R.