The following example shows how you can access the folder containing the Adobe AIR application’s installed files by using the static File.applicationDirectory property.

Full code after the jump





    
        

    
        
            
        
    


(flash.filesystem::File)#0
  creationDate = Wed Dec 10 19:45:07 GMT-0800 2008
  creator = (null)
  data = (null)
  exists = true
  extension = (null)
  icon = (flash.desktop::Icon)#1
    bitmaps = (Array)#2
      ...
  isDirectory = true
  isHidden = false
  isPackage = false
  isSymbolicLink = false
  modificationDate = Fri Dec 12 19:15:05 GMT-0800 2008
  name = "bin-debug"
  nativePath = "C:Documents and SettingspdehaanMy DocumentsFlex Builder 3File_applicationDirectory_testbin-debug"
  parent = (null)
  size = 0
  spaceAvailable = 2500726784
  type = (null)
  url = "app:/"
Tagged with:
 

2 Responses to Getting the main application directory in Adobe AIR

  1. Tuyen Nguyen says:

    Excellent work !!! I do like all of your posts.
    Thank you very much for your tutorials.

  2. Stephen Sweetland says:

    Thanks chap! Really helpful….

Leave a Reply

Your email address will not be published.