Using Components > The ListBox component |  |

The ListBox component

The ListBox component lets you add scrollable single- and multiple-selection list boxes to Flash movies. You add the items displayed in the ListBox using the Values dialog box that appears when you click in the labels or data parameter fields. You can also use the `FListBox.addItem` and `FListBox.addItemAt` methods to add items.

The ListBox 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 FListBox methods, you may need to specify the index of the list item.For more information, see the following entries in the ActionScript Dictionary: `FListBox.addItemAt`, `FListBox.removeItemAt`, `FListBox.replaceItemAt`.

The ListBox component has the following standard built-in mouse and keyboard controls:

| The Up Arrow key moves the selection up one position.
| The Down Arrow key moves the selection down one position.
| PageUp moves the selection up one page. The size of the page is determined by the height of the list box instance.
| 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.