
138 Use List-based Form Controls
A browser opens and runs your small Flex application.
9. Click the ComboBox control in the browser.
The control doesn’t list any items because you haven’t defined its data provider yet.
Populate the list
You populate a list-based form control with the <mx:dataProvider> child tag. The
<mx:dataProvider> tag lets you specify list items in several ways. The simplest method is to
specify an array of strings, as follows.
NOTE
The browser must have Flash Player 9 installed to run the application. You have the
option of installing Flash Player 9 in selected browsers when you install Flex Builder.
To switch to a browser with Flash Player 9, in Flex Builder select Window >
Preferences > General > Web Browser.
Commentaires sur ces manuels