Specifications
CHAPTER 8
162
The component compiler can take most of the application compiler options, and the options described in this
section. For a description of the application compiler options, see “About the application compiler options” on
page 139. Application compiler options that do not apply to the component compiler include the metadata
options (such as
contributor, title, and date), default application options (such as default-background-
color
and default-frame-rate), locale, debug-password, and theme.
The component compiler has compiler options that the application compilers do not have. The following table
describes the component compiler options that are not used by the application compilers:
Option Description
compute-digest=true|false
Writes a digest to the catalog.xml of a library. Use this when the library will be used
as a cross-domain RSL or when you want to enforce the versioning of RSLs. The
default value is true.
For more information about RSLs, see “Using Runtime Shared Libraries” on
page 195.
directory=false|true
Outputs the SWC file in an open directory format rather than a SWC file. You use this
option with the
output option to specify a destination directory, as the following
example shows:
compc -directory=true -output=destination_directory
You typically use this option when you create RSLs because you must extract the
library.swf file from the SWC file before deployment. For more information, see
“Using Runtime Shared Libraries” on page 195.
The default value is false.
include-classes class [...]
Specifies classes to include in the SWC file. You provide the class name (for example,
MyClass) rather than the file name (for example, MyClass.as) to the file for this
option. As a result, all classes specified with this option must be in the compiler’s
source path. You specify this by using the
source-path compiler option.
You can use packaged and unpackaged classes. To use components in namespaces,
use the
include-namespaces option.
If the components are in packages, ensure that you use dot-notation rather than
slashes to separate package levels.
This is the default option for the component compiler.










