User interaction with the TileList

A TileList renders each cell using a Sprite that implements the ICellRenderer interface. You can specify this renderer with the TileList cellRenderer property. The TileList component's default CellRenderer is the ImageCell, which displays an image (class, bitmap, instance, or URL), and an optional label. The label is a single line that always aligns to the bottom of the cell. You can scroll a TileList in only one direction.

When a TileList instance has focus, you can also use the following keys to access the items within it:

Key

Description

Up Arrow and Down Arrow

Allow you to move up and down through a column. If the allowMultipleSelection property is true, you can use these keys in combination with the Shift key to select multiple cells.

Left Arrow and Right Arrow

Allow you to move to the left or right in a row. If the allowMultipleSelection property is true, you can use these keys in combination with the Shift key to select multiple cells.

Home

Selects the first cell in a TileList. If the allowMultipleSelection property is true, holding Shift and pressing Home will select all the cells from your current selection to the first cell.

End

Selects the last cell in a TileList. If the allowMultipleSelection property is true, holding Shift and pressing End will select all the cells from your current selection to the last cell.

Ctrl

If the allowMultipleSelection property is set to true, allows you to select multiple cells, in no specific order.

When you add the TileList component to an application, you can make it accessible to a screen reader by adding the following lines of ActionScript code:.

import fl.accessibility.TileListAccImpl;

TileListAccImpl.enableAccessibility();

You enable accessibility for a component only once, regardless of how many instances the component has. For more information, see Chapter 18, "Creating Accessible Content," in Using Flash.