3 Replies Latest reply on Nov 6, 2008 10:51 AM by tzeng

    copy files from applicationresourcedirectory

    Matt Gifford Level 1
      Hi all

      I'm working on a requirement to transfer files from within a directory in the applicationresourcedirectory (C:\Program Files\[air file name]\content) to a folder within the applicationStorageDirectory.

      I am having trouble accessing the resourcedirectory within the AS3 code:

      var f2:File = File.applicationResourceDirectory.resolvePath(pDirPath);

      I am getting the error 1119.

      I know you can't write to the directory anymore, but I thought you could still read from it.
      Am I doing something wrong? Are there classes that I should be importing? I have the flash.filesystem.File class.

      Many thanks,