How to Add Flex Project Version Using Compiler Arguments

Here we will see How to add project version in your flex application.In following method we are going to get project version from build.properties file and pass as a mxmlc compiler argument (define) to the application.Same will be displayed in flex application. With the help of conditional compilation we can make it easily.

How to Add Flex Project Version Using Compiler Arguments.

your build.properties file has entry like below.

project.version = 1.5.

And we need to use above property in your build.xml. find code like below and add the define tag.

[codesyntax lang=”xml” lines=”no”]

[/codesyntax]

Refer the buildNumber in label component where you want.

[codesyntax lang=”xml” lines=”no”]

[/codesyntax]

That’s all.Now your flex application will display project version still you have any doubt ask via below comment section.

About mohan

This is Mohan Jayapalan author of TechPages Blog.I am a part time blogger and Currently working for private Software Concern.

© Copyright 2010-2016 www.techpages.org · All Rights Reserved · Powered by WordPress ·