To compile a Flex file to check for errors:
Open an MXML application file in Flex Builder.
1.
An MXML application file contains an
If you want to compile custom components, insert them in a test application file and compile
the file. For more information, see
on page
117.
Compile the file by doing one of the following:
2.
Select File > Build.
In the Output panel in the Results panel group (Window > Results), click the Play button
on the sidebar and select Build on Server.
The server compiles the application file and Flex Builder displays any MXML and
ActionScript compile-time error messages and warnings in the Output panel.
Review any compilation errors or warnings in the Output panel.
3.
For more information on the Output panel, click the Help button in the panel.
Double-click any error or warning message in the panel to open the file in which the error
4.
occurred and jump to the line that caused the problem.
Compiling and running Flex files
You can run compiled versions of Flex files in a browser from time to time to check the progress
of your design.
If you want to compile and review error messages without running the file in a browser, see
"Compiling files to check for errors" on page
Before you start, make sure you correctly defined a Flex testing server for Flex Builder, and that
the server is running. Flex Builder relies on the testing server to compile Flex files and display
them in a browser. For more information, see
on page
9.
This section covers the following topics:
•
"Running a file" on page 86
•
"Uploading dependent files" on page 87
<mx:Application>
"Inserting controls and containers in an MXML file"
84.
"Starting a new application in Flex Builder"
root tag.
Testing and debugging Flex files
85
Need help?
Do you have a question about the FLEX BUILDER-USING FLEX BUILDER and is the answer not in the manual?