This content has been marked as final. Show 6 replies
AIR alone will not let you do this (even if you have write access to the installed dir).
We block access to the application directory because (a) it's an insecure coding practice and (b) it won't work on all operating systems, anyway.
This is not a particularly severe limitation in most scenarios since you can instead store the data elsewhere. The two most common locations are File.applicationStorageDirectory (good for files the user doesn't need to see) and File.documentsDirectory (good for files the user might want to find).
Oliver Goldman | Adobe AIR Engineering
Thank you for both of your replies. I have since discovered that writing to the "applicationDirectory" is indeed possible. If it's not "supposed to be allowed", I have found a bug in the current version of AIR that will allow me to do so. My issue has been solved and my client is happy with the results.
could u tell us how u did it?
I had this problem as well. My current application can save to the application directory -- but only
under certain conditions. I've been searhcing for the bug in my code... but it sounds like its in yours, blargh.