You need to learn how to create a Flex Library Project in Flash Builder.
From the Flex Navigator, choose New Flex Library Project to access the Create New Project wizard.
A Flex Library project does not have a main MXML file that is compiled into a SWF. Instead, the project files are compiled into a SWC file that can be used in other applications or as the source for a runtime shared library (usually referred to as an RSL). The classes within the library are used to create a group of assets that can be reused in multiple projects at either compile time or runtime. To create a Flex Library project, right-click or Ctrl-click (Mac) in the Flash Builder's project navigator to open the contextual menu (Figure 1-6), or use the File menu. In either case, then choose New→Flex Library Project.
Figure 1.6 - Creating a Flex Library Project
In the resulting dialog box (Figure 1-7), specify a name for your project as well as its location.\
Figure 1.7 - Setting the project location and SDK for the compiler
If you have nothing more to add, click Finish now. If you need to include files, assets, or other SWC files, including the Adobe AIR libraries, click Next and select them from the resulting screen. To set the path to assets or classes that you would like to add to the library, first browse to a source path you would like to include and then specify the classes or graphical assets to compile into the library. Click Finish to create the project.
This recipe was originally contributed by Joshua Noble as part of O'Reilly's Flex 4 Cookbook.
+