Created
November 8, 2010 05:14
-
-
Save DoubleBrotherProgrammer/667408 to your computer and use it in GitHub Desktop.
Get the root install folder of an AIR application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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