Defining a site for the Flex Sample Apps application
15
5.
Click Testing Server in the Category list to display the Testing Server settings.
You use the Testing Server options to tell Flex Builder where it can “test” files—that is, where it
can send files to be compiled at design time. Flex Builder needs to get these files compiled so
you can preview MXML files, get build and debugging information, and connect to back-end
systems.
6.
Select MXML for JSP from the Server Model pop-up menu.
This tells Flex Builder what kind of web application you’re developing.
7.
In the Access pop-up menu, select the same access method you selected in the Remote Info
category (FTP or Local/Network).
After you make your selection, Flex Builder automatically populates the rest of the dialog box
based on the information you entered in the Remote Info category. This is only a best guest.
Make sure the following values are used:
■
Testing Server Folder
(if using Local/Network access) is identical to the remote folder in
the Remote Info category (.../samples)
■
FTP
settings (if using FTP access) are identical to the settings in the Remote Info category
■
URL Prefix
is an HTTP address Flex Builder can use to request a file in the testing server
folder, such as http://<hostname>/samples/.
To get a file compiled at design time, Flex Builder uploads the file to the testing server folder
you specified and attempts to request it using the URL prefix.
8.
Click OK to define the site and dismiss the Site Definition dialog box, and then click Done to
dismiss the Manage Sites dialog box.
The Flex Sample Apps site is defined and you can start exploring, editing, previewing, and
debugging the sample apps with Flex Builder.
Caution:
You should make a backup of the samples folder so you can restore files if necessary.
Examples of site settings
This section lists Flex Builder site settings for the Flex Sample Apps application running on
common J2EE servers. This application provides a number of sample applications you can use to
explore Flex and learn to work with Flex Builder.
The Flex Sample Apps application is created when you install the Flex server using the JRun4/
Flex install option. If you don’t use this install option, you must deploy the samples .war file
yourself.
Use the following settings in the Flex Server Site Setup dialog box. For more information, see
“Defining a Flex Builder site” on page 9
. You can also use these settings in the advanced Site
Definition dialog box (if you access the server through a network). Enter the Flex Server Root
Folder value in both the Remote Folder text box and the Testing Server Folder text box in the Site
Definition dialog box.
Replace items in angle brackets with the information specific to your server configuration.
Summary of Contents for FLEX BUILDER-USING FLEX BUILDER
Page 1: ...Using Flex Builder...
Page 116: ...116 Chapter 4 Building a Flex User Interface Visually...
Page 144: ...144 Chapter 6 Working with Data...
Page 154: ...154 Appendix A Basic Flex Concepts...