How to link SWC files to a TextMate Flex / Actionscript project

Open up Flex > Project > Project-config.xml. You’ll notice this is the schematic of a file which is created automatically when you create an Flex 3 project. Unfortunately, the Project-config.xml schematic in the Flex bundle lacks these two sample nodes that are in the ActionScript 3 bundle. These are:

<!-- Example library linkage -->

<!-- for swc's
  <library-path append="true">
<path-element>../lib/bin/</path-element> </library-path> -->

<!-- for src
<source-path append="true">
<path-element>../lib/src/</path-element> </source-path>
-->

This file acts as a project-level override to the general configuration file found in the SDK directory. Close the bundle editor. You’ll want to add the following to your project’s configuration xml which lives in ’src’:

<library-path append="true">
  <path-element>../libs/</path-element>      
</library-path>

Now you can create a new directory named ‘libs’ parallel to ’src’ and drop into here all SWC files that your project depends on. Save the configuration file and you should be able to build. Now anyone with the Flex SDK will be able to save your project directory locally and jump right into compiling