Tuesday, June 22, 2010

Compiling Flex Applications

I am working on creating a build script for deployment of my flex application, and i was wondering how do i find out if a given mxml needs to be compiled?
Generally only the Application mxmls can be compiled, so identifying an application mxml from a bunch of mxmls needed to be done.

To accomplish this i wrote a java class to open all the mxml files and (treat them as normal xml files) create DOM objects for each mxml and check the root node of the DOM object. If the root node is
"mx:Application" or "s:Application", the mxml was supposed to be compiled.

This is another reminder that mxml files are first of all xml files.

I have completed creating the automated build script for compiling FLEX applications, if any one wants to know more about the build script, Please drop me a message and i will be happy to share the build script with you...

Hope this post helps people, save some time...

No comments:

Post a Comment