Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL
Help

Chapter 1: Introduction - Pg. 1

1 Chapter 1: Introduction The Quick Start section contains a full example to get you started using the Adobe® Flex® compiler API. Topics About the Flex compiler API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Quick Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Configuring the compiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Adding assets to applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 About the Flex compiler API The Flex compiler API lets you compile Flex applications from Java applications. You can also create Flex applica- tions in memory and compile them to SWF files without ever having an MXML file on disk. In addition, the compiler API lets you output linkage reports and other details about your applications. You can also create project files and libraries with the compiler API. Libraries are SWC files that define a set of components for use in your application, theme files, or Runtime Shared Libraries (RSLs). Projects combine Flex applications and libraries. They let you enforce dependencies between a Flex application and its assets in the compi- lation process. Requirements of the compiler API The Flex compiler API has the following requirements: Java JDK The compiler API requires that you have the Java interpreter and the javac compiler from JDK version 1.4.2 or later. Flex SDK The compiler API is not a stand-alone product. It requires the Flex SDK or the SDK included with Flex Builder. What's included The flex_compiler_api.zip file includes the following resources: flex-compiler-oem.jar The flex2.tools.oem.* API for the compiler API. This JAR file is in the /lib directory in the ZIP file. When you expand the ZIP file, you should move this file to your SDK's lib directory. JavaDocs The API documentation for the public classes and interfaces in the flex2.tools.oem.* package. These files are in the /api directory in the ZIP file. README.txt The readme file is at the top level of the ZIP file. It contains installation instructions and information on using a temporary license with the compiler API. In addition, you can download the following separately: flex_compiler_api_guide.pdf The Flex 3 Compiler API User Guide is a PDF that provides usage documentation for the compiler API. This file is at the top level of the ZIP file.