Displaying the AIR application version
There are numerous reasons why you’d want to get access to the AIR application version. You may want to display it in an “about” dialog or perhaps you want to automatically check your website for updates.
First make sure you have defined an appropriate version number in your Application-app.xml file.
<version>v0.15 beta</version>
Then from your application you can use the following code to obtain the version string.
var descriptor:XML = NativeApplication.nativeApplication.applicationDescriptor; var ns:Namespace = descriptor.namespaceDeclarations()[0]; var version:String = descriptor.ns::version;