13 Replies Latest reply on Aug 26, 2008 5:12 PM by Scott McAllister

    Getting Files to ApplicationStorageDirectory on Install

    Scott McAllister
      I'm having a bit of a quandary. I have two directories of files (one of jpegs and one of pdfs) as well as a pre-populated SQLite db that I want included with my AIR application. Once the application is installed I want them to be stored in the ApplicationStorageDirectory because I would like to be able to add and remove images/pdfs from those directories later.

      The application is going to be distributed and installed off of a CD, so I need a way to get the two directories and pre-populated SQLite db into the ApplicationStorageDirectory.

      I could include the files in the applicatonDirectory, but that is a read-only directory and I couldn't add/remove files later.

      My other idea was to simply store the files on the CD and just copy them to the ApplicationStorageDirectory, but I don't know how to reference a CD using code that would work no matter which platform.

      Any thoughts or recommendations would help greatly. Thanks!

      -Scott