Using ActionScript 3.0 Components |
|
|
|
| Using the UI Components > Using the TileList > 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 |
|
Left Arrow and Right Arrow |
Allow you to move to the left or right in a row. If the |
|
Home |
Selects the first cell in a TileList. If the |
|
End |
Selects the last cell in a TileList. If the |
|
Ctrl |
If the |
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.
|
|
|
|