Quick Tip: Display Application Version in your AIR App.

Just a quick tip for those looking to somehow display the AIR application version from the descriptor file. I’ve found it very helpful in troubleshooting is users can say EXACTLY what version of the app they are running.

Application Version

1
2
3
4
5
6
private function getAppVersion():String {
	var appXml:XML = NativeApplication.nativeApplication.applicationDescriptor;
	var ns:Namespace = appXml.namespace();
	var appVersion:String = appXml.ns::version[0];
	return appVersion;
}

7 thoughts on “Quick Tip: Display Application Version in your AIR App.

  1. Pingback: In Flagrante Delicto! ยป Quick Tip: Display Application Version in … - edvdbox

  2. Pingback: Raymond Camden's ColdFusion Blog: Determining the version of an …

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">