Skip to content

Instantly share code, notes, and snippets.

@HH5HH
Created November 8, 2010 05:14
Show Gist options
  • Select an option

  • Save HH5HH/667408 to your computer and use it in GitHub Desktop.

Select an option

Save HH5HH/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