Adobe Flex 3 Help

Using SWC files

Often, you use SWC files when compiling MXML files. SWC files can provide themes, components, or other helper files. You typically specify SWC files used by the application by using the library-path option.

The following example compiles the RotationApplication.mxml file into the RotationApplication.swf file:

mxmlc -library-path+=c:/mylibraries/MyButtonSwc.swc c:/myfiles/comptest/testRotation.mxml

In a configuration file, this appears as the following example shows:

<compiler>
    <library-path>
        <path-element>c:/flexdeploy/frameworks/libs/framework.swc</path-element>
        <path-element>c:/flexdeploy/frameworks/locale/{locale}            /framework_rb.swc</path-element>
        <path-element>c:/mylibraries/MyButtonSwc.swc</path-element>
    </library-path>
</compiler>