2 Replies Latest reply on Dec 17, 2008 11:34 PM by BhaskerChari

    Is there a way to create a new directory or file in application install directory programatically

    BhaskerChari Level 4
      Hi to all,
      Is there a way to create a new directory or file in application install directory programatically.
      I want a xml file to be created with in the application install directory programatically(not the application storage directory)

      I have used the following code snippet:

      var file:File = new File();
      file = File.applicationDirectory;
      file = file.resolvePath("assets");
      if(!file.exists)
      {
      file.createDirectory()
      }


      I am thrown an exception when using this .....Security Exception