
208 Use Web Services
4. In Design mode, drag the following controls into the Panel container from the
Components view:
■ ComboBox
■ DataGrid
■ LinkButton
5. Use the mouse to arrange the controls on the Canvas in a vertical, left-aligned column
similar to the following:
6. Select the ComboBox control and enter cbxNumPosts as the value of its id property in the
Flex Properties view.
The ComboBox control doesn’t list any items. You populate the list next.
7. Switch to the editor’s Source mode by clicking the Source button in the editor’s toolbar,
and then enter the following code between the opening and closing
<mx:ComboBox> tag:
<mx:Object label="Top 5" data="5"/>
<mx:Object label="Top 10" data="10"/>
<mx:Object label="Top 15" data="15"/>
For a tutorial on list-based controls, see Chapter 11, “Use List-based Form Controls,” on
page 135.
Commenti su questo manuale