03-02-2012 04:48 AM
I like to be able to determine the application version when my application runs. This is useful for bug reporting, savefiles...
Until today I always defined a static constant that contained the version number, but this feels a) rather error prone (I forgot to change it a few times) b) too old-fashioned. So I went looking for a way to determine this dynamically. This is the result:
var appXml:XML = NativeApplication.nativeApplication.applicationDes
criptor; var ns:Namespace = appXml.namespace(); var appVersion:String = appXml.ns::versionNumber;
I thought I'd share this information with this community since I got so much already from it. I hope this is useful for somebody.