AIR LocalStorage Location

By tekitwa

File.applicationStorageDirectory

Description Application storage directory. For every AIR application, there is a unique associated path that defines the application storage directory. This directory is unique to each application and user.
Windows In the documents and Settings directory, in user name/Application Data/applicationID.publisherID/Local Store/ (C:\Documents and Settings\babbage\Application Data\com.example.TestApp. 02D88EEED35F84C264A183921344EEA353A629FD.1\ Local Store)
Mac OS In /Users/user name/Library/Preferences/applicationID.publisherID/Local Store/ (/Users/babbage/Library/Preferences/ com.example.TestApp.02D88EEED35F84C264A183921344EEA353A629FD.1 /Local Store)
Notes The URL (and url property) for a File object created with File.applicationStorageDirectory uses the app-storage URL scheme. 

var dir = File.applicationStorageDirectory;
dir = dir.resolvePath("prefs.xml");
trace(dir.url); // app-storage:/preferences

From :  http://www.flexer.info/2008/05/08/air-applications-file-and-directory/

Tags:

Leave a Reply