Specifications

7ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
When you compile your application, the Flex compiler creates a single SWF file from all of the application files
(Adobe® MXML™, AS, RSL, SWC, and asset files), as the following example shows:
Flex provides two compilers: mxmlc and compc. You can use the compc and mxmlc compilers from within Flex
Builder or from a command line.
You use mxmlc to compile MXML, ActionScript, SWC, and RSL files into a single SWF file. After your application
is compiled and deployed on your web or application server, a user can make an HTTP request to download and
play the SWF file on their computer.
You use compc to create resources that you use to create the application. For example, you can compile compo-
nents, classes, and other files into SWC files or into RSLs, and then statically or dynamically link these libraries to
your application.
For more information, see “Using the Flex Compilers” on page 125.
ActionScript
Classes
SWC and RSL les
*.AS
*.AS
*.AS
*.SWF
RSL les
Client
Web Server
Compiler/Linker
Custom
components
main.mxml
Use <mx;Script>
to write, import,
or include
ActionScript
*.MXML
<..>
*.AS
*.MXML
<..>
<mx:Application>
*.AS