
136 Use List-based Form Controls
1. With your Lessons project selected in the Navigator view, select File > New > MXML
Application and create an application file called ListControl.mxml.
2. Designate the ListControl.mxml file as the default file to be compiled by right-clicking
(Control-click on Macintosh) the file in the Navigator view and selecting Set As Default
Application from the context menu.
3. In the MXML editor’s Design mode, drag a Panel container into the layout from the
Layout category of the Components view, and then set the following Panel properties in
the Properties view:
■ Title: Rate Customer Service
■ Width: 350
■ Height: 200
■ X: 10
■ Y: 10
4. Add the following controls to the Panel container by dragging them from the Controls
category of the Components view (Window > Components):
■ ComboBox
■ Button
5. Select the ComboBox control in the layout and set the following ComboBox properties in
the Flex Properties view:
■ ID: cbxRating
■ X: 20
■ Y: 20
The ComboBox control doesn’t list any items. You populate the list later.
6. Select the Button control and set the following Button properties in the Flex Properties
view:
■ Label: Send
■ X: 140
■ Y: 20
NOTE
For the purpose of these lessons, several application files are used in a single Flex
Builder project. However, it’s good practice to have only one MXML application file
per project.
Kommentare zu diesen Handbüchern