var _descriptor:XML = nativeApplication.applicationDescriptor; var ns:Namespace = _descriptor.namespace(); var version:String = _descriptor.ns::versionNumber;
This is what works for me. The "descriptor" var is used in AIR 3.2 for the UIComponentDescriptor, so I could not use this variable name. Also, static access to nativeApplication (NativeApplication.nativeApplication) gave me a reference to a null pointer, so I just grabbed it directly.
Finally, versionNumber is what stores the version in AIR 3.2.
posit labs
source share