Skip to content

Instantly share code, notes, and snippets.

@DoubleBrotherProgrammer
Created November 8, 2010 05:14
Show Gist options
  • Save DoubleBrotherProgrammer/667408 to your computer and use it in GitHub Desktop.
Save DoubleBrotherProgrammer/667408 to your computer and use it in GitHub Desktop.
Get the root install folder of an AIR application
// split path using applicationId
var _appDir:Array = File.applicationDirectory.nativePath.split(
NativeApplication.nativeApplication.applicationID, 1
);
// first item in array = root folder
trace( _appDir[0] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment