Using mxmlc -source-path for Sibling Application Folders
Posted by Lon Hosford on May 27th, 2007 at 11:22am
When using mxmlc (the Flash Flex AS3 command line compiler) I wanted to create a folder structure for sharing a common libraries but for different examples and apps that have their own sibling folders. This would keep the parent folder of both the library and the apps clean.
Ex:
com.hosford.core
com.hosford.controls
apps.clock
apps.diceRoller
I use Windows and batch files for mxmlc. I prefer to copy a new version of the batch for each need and edit rather than type at the command line. Thus I can just click the batch file in a Window for each iteration.
I also do not use any environment variables so the batch file allows for hard paths were needed.
Assume in apps.clock the source file was ClockApp.as
Its package would be:
The imports are as you can expect:
The mxmlc line is in a Windows batch file is as follows but all on one line:
The -source-path option is the item that allows ClockApp.as to find the com libraries. The += adds to any environment path you also have.
Leave a Comment for Using mxmlc -source-path for Sibling Application Folders
You must be logged in to post a comment.
Trackback this post | Subscribe to the comments via RSS Feed