Specifications
345ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
Use the web-tier compiler
1 (Windows) Reboot your computer.
2 Start or restart the web server.
3 Copy your MXML file to the web server’s document root. For Apache, the default document root is
Apache_install_dir/htdocs. For IIS, it is IIS_install_dir/wwwroot.
4 Request the MXML file in your web browser. For example:
http://localhost/Main.mxml
The module returns a generated wrapper that embeds the SWF file.
Map the project’s workspace to a virtual path in your web server
1 In Apache, set the Alias directive in the httpd.conf file:
Alias /flex "C:/Documents and Settings/knizia/workspace/MyBasicProject"
Alternatively, you can define your Adobe® Flex® Builder™ project directly under the web root.
2 In Flex Builder, select Run > Run to change the URL to launch in your project. The Run dialog box appears.
3 Under URL or Path to Launch, deselect the Use Defaults option.
4 Enter your request URL in the Debug and Run text boxes. For example:
http://localhost/flex/MyBasicProject.mxml
http://localhost/flex/MyBasicProject.mxml
Flex Builder appends ?debug=true to the URL when it launches the browser. This query string parameter
triggers a compilation with the debug compiler options enabled.
Configuring the web-tier compiler
You configure the web-tier compiler primarily with the following configuration files:
1 compiler.conf — Defines web-tier compiler-specific settings such as the location of the HTML template and
the location of the flex-config.xml file. The compiler.conf file is located in the module_install_dir directory.
This file uses the following syntax:
option_name=value
For example:
template=default.html










