Specifications
CHAPTER 8
172
If you want to add many resources to the SWC file, consider using a configuration file rather than listing all the
resources on the command line. For an example of a configuration file that includes multiple resources in a SWC
file, see “Using Styles and Themes” on page 589 in Adobe Flex 3 Developer Guide.
In general, specify a file extension for files that you include with the
include-file option. In some cases,
omitting the file extension can lead to a loss of functionality. For example, if you include a CSS file in a theme SWC
file, you must set the name to be *.css. When Flex examines the SWC file, it applies all CSS files in that SWC file
to the application. CSS files without the CSS extension are ignored.
Creating themes
You can use the include-file and include-classes options to add skin files and style sheets to a SWC file.
The SWC file can then be used as a theme. For more information about using themes in Flex applications, see
“Using Styles and Themes” on page 589 in Adobe Flex 3 Developer Guide.
Viewing errors and warnings
You can use the compiler options to specify what level of warnings and errors to view. Also, you can set levels of
logging with the compiler options.
Viewing warnings and errors
There are several options that let you customize the level of warnings and errors that are displayed by the Flex
compilers, including the following:
• show-binding-warnings
• show-actionscript-warnings
• show-shadowed-device-font-warnings
• strict
• warnings
To disable all warnings, set the warnings option to false.
The
show-actionscript-warnings option displays compiler warnings for the following situations:
1 Situations that are probably not what the developer intended, but are still legal; for example:
if (a = 10) // Did you really want '==' instead of '='?
if (b == NaN) // Any comparison with NaN is always false.
var b; // Missing type declaration.










