3 Replies Latest reply on Aug 18, 2009 12:39 PM by Diamanter

    Can't read files from AIR.

    Diamanter Level 1

      I have the main application file: main.swf

       

      main.swf loads module.swf (additional module file) with Loader().

       

      module.swf can't access any files (even to read or resolve).

       

      something like:

      var myFile:File = new File("C:");

      causes the error:

       

      SecurityError: file
          at runtime::SecurityManager$/checkPrivilegeForCaller()

       

       

       

      How should I load module.swf to avoid security errors? I tried to add ApplicationDomain.currentDomain for LoaderContext, but no success...