Schemaphic Systems Blog

Sharing experiences in Flash, Flex and AIR

AIR application version check

with one comment

Look for “<version>” tag in the Application-app.xml file which gets generated while creating a WindowedApplication. The value of this tag resembles the current version of the air.

public function getAIRApplicationVersion() : String {
var applicationXML:XML = NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = applicationXML.namespace();
return applicationXML.ns::version;

trace( getAIRApplicationVersion() );


Written by Deepanjan Das

July 20, 2010 at 12:25 PM

One Response

Subscribe to comments with RSS.

  1. It looks like the property name for version has changed. In AIR 3.2 you have to use this:


    Karl Brooks

    May 27, 2012 at 10:30 AM

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: