Specifications

163ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
On the command line, you cannot point the compc utility to a single directory and have it compile all components
and source files in that directory. You must specify each source file to compile.
If you have a large set of components in a namespace to include in a SWC file, you can use a manifest file to avoid
having to type an unwieldy compc command. For information on creating manifest files, see “A b o u t m a n i f e s t
files” on page 175.
include-file name path [...]
Adds the file to the SWC file. This option does not embed files inside the library.swf
file. This is useful for adding graphics files, where you want to add non-compiled
files that can be referenced in a style sheet or embedded as assets in MXML files.
If you add a stylesheet that references compiled resources such as programmatic
skins, use the
include-stylesheet option.
If you use the [Embed] syntax to add a resource to your application, you are not
required to use this option to also link it into the SWC file.
For more information, see Adding nonsource classes” on page 171.
include-lookup-only=false|true
If true, only manifest entries with lookupOnly=true are included in the SWC
catalog. The default value is
false.
This is an advanced option.
include-namespaces uri [...]
Specifies namespace-style components in the SWC file. You specify a list of URIs to
include in the SWC file. The
uri argument must already be defined with the
namespace option.
To use components in packages, use the include-classes option.
include-sources path-element
Specifies classes or directories to add to the SWC file. When specifying classes, you
specify the path to the class file (for example, MyClass.as) rather than the class name
itself (for example, MyClass). This lets you add classes to the SWC file that are not in
the source path. In general, though, use the
include-classes option, which lets
you add classes that are in the source path.
If you specify a directory, this option includes all files with an MXML or AS extension,
and ignores all other files.
include-stylesheet name path [...]
Specifies stylesheets to add to the SWC file. This option compiles classes that are
referenced by the stylesheet before including the stylesheet in the SWC file.
You do not need to use this option for all stylesheets; only stylesheets that reference
assets that need to be compiled such as programmatic skins or other class files. If
your stylesheet does not reference compiled assets, you can use the
include-
file
option.
This option does not compile the stylesheet into a SWF file before including it in the
SWC file. You compile a CSS file into a SWF file when you want to load it at run time.
Option Description