Using Components > The ComboBox component |
![]() ![]() ![]() |
The ComboBox component
The ComboBox component lets you add scrollable single-selection drop-down lists to Flash movies with a minimum of authoring and scripting. The ComboBox component creates both static and editable combo boxes. A static combo box is a scrollable drop-down list that lets the user select items in the list. An editable combo box is a scrollable drop-down list with an input text field (similar to a search field) in which a user can enter text to scroll to the matching menu item in the scroll list.
The ComboBox component uses a zero-based index, where the item with index 0 is the first item displayed. When adding, removing, or replacing list items using the FComboBox methods, you may need to specify the index of the list item.
For more information, see the following entries in the ActionScript Dictionary:
FComboBox.removeItemAt
, and FComboBox.replaceItemAt
.
The ComboBox component has the following built-in mouse and keyboard controls:
![]() |
Up Arrow key moves the selection up one line in the scroll list. |
![]() |
Down Arrow key moves the selection down one line in the scroll list. |
![]() |
PageUp moves the selection up one page. The size of the page is determined by the Row Count parameter. See ComboBox parameters. |
![]() |
PageDown moves the selection down one page. |
![]() |
Home selects the item at the top of the list. |
![]() |
End selects the item at the bottom of the list. |
For more information, see the FComboBox (component) entry in the online ActionScript Dictionary in the Help menu.
![]() ![]() ![]() |