Chapter 27: List Component - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

CHAPTER 27
List component
The List component is a scrollable single- or multiple-selection list box. A list can also display
graphics, including other components. You add the items displayed in the list by using the
Values dialog box that appears when you click in the labels or data parameter fields. You can
also use the
List.addItem()
The List component uses a zero-based index, where the item with index 0 is the top item
displayed. When adding, removing, or replacing list items using the List class methods and
properties, you may need to specify the index of the list item.
The list receives focus when you click it or tab to it, and you can then use the following keys
to control it:
Key
Alphanumeric keys
Control
Down Arrow
Home
Page Down
Page Up
Shift
Up Arrow
The page size used by the Page Up and Page Down keys is one less than the number of
items that fit in the display. For example, paging down through a ten-line drop-down list
shows items 0-9, 9-18, 18-27, and so on, with one item overlapping per page.
For more information about controlling focus, see
"Creating custom focus navigation" in Using Components.
and
List.addItemAt()
Description
Jump to the next item that has
in its label.
Toggle key that allows multiple noncontiguous selections and
deselections.
Selection moves down one item.
Selection moves to the top of the list.
Selection moves down one page.
Selection moves up one page.
Allows for contiguous selection.
Selection moves up one item.
"FocusManager class" on page 721
methods to add items to the list.
as the first character
Key.getAscii()
2 7
or
761

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents