Specifications

113ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Loggers
You can log messages at several different points in a Flex applications life cycle. You can log messages when you
compile the application, when you deploy it to a web application server, or when a client runs it. You can log
messages on the server or on the client. These messages are useful for informational, diagnostic, and debugging
activities.
Flex includes the following logging mechanisms that you use when working with Flex applications.
Client-side logging When you use the debugger version of Flash Player or start your AIR application using AIR
Debug Launcher, you can use the
trace() global method to write out messages or configure a TraceTarget to
customize log levels of applications for data services-based applications. For more information, see “Client-side
logging and debugging” on page 232.
Compiler logging When compiling your Flex applications from the command line and in Flex Builder, you can
view deprecation and warning messages, and sources of fatal errors. For more information, see “Compiler
logging” on page 243.
About application files
Flex applications can use many types of application files such as classes, component libraries, theme files, and
Runtime Shared Libraries (RSLs).
Component classes
You can use any number of component classes in your Flex applications. These classes can be MXML or Action-
Script files. You can use classes to extend existing components or define new ones.
Component classes can take the form of MXML, ActionScript files, or as SWC files. In MXML or ActionScript
files, the components are not compiled but reside in a directory structure that is part of your compilers source
path. SWC files are described in “SWC files” on page 114.
Component libraries are not dynamically linked unless they are used in a Runtime Shared Library (RSL).
Component classes are statically linked at compile time, which means that they must be in the compiler’s source
path. For information about creating and using custom component classes, see Creating and Extending Adobe
Flex 3 Components.