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;
}
This entry was posted in AIR, ActionScript and tagged , , . Bookmark the permalink.

4 Responses to Quick Tip: Display Application Version in your AIR App.

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

  2. John Verco says:

    Awesome. Thanks for the great tip.

  3. randall says:

    Thank you! Very helpful!

  4. Taylor Brown says:

    Exactly what I was looking for. Thanks!

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="">