- Adobe Flash Professional version MX and higher
- Adobe Flex
Adobe has plans to stop updating and distributing the Flash Player at the end of 2020, and encourages authors interested in creating accessible web content to use HTML.
This technique relates to Success Criterion 1.3.1: Info and Relationships (Sufficient as a way to meet an unwritten technique).
The objective of this technique is to programmatically associate captions for DataGrids where captions are provided in the presentation. Normally, the caption for a table is a table identifier and acts like a title or heading for the table.
Flash does not have a caption element for the DataGrid component, but the same effect can be achieved through the following approach:
- Place a label component or textfield above the DataGrid, containing the grid's caption text.
- Duplicate the caption text and add it as the grid's accessible
name. This can either be achieved by setting a value to the grid's "name" field
in the Accessibility panel or by setting the grid's
Example 1: Associating a label with a DataGrid
This is an example of a DataGrid being added to the stage in Flash Professional from the Components panel. A label element is also added from the Components panel to contain the caption text and the caption text is used in the Accessibility control panel in Flash to serve as the accessibility name for the DataGrid.
- Create a new Flash file (.fla) or open an existing one to put a DataGrid into.
- Open the Flash components panel from the Window menu
- Drag a DataGrid component onto the stage and position as desired.
- Drag a label component onto the stage and position as desired.
- Add text to the label component.
- Select the DataGrid component and add the same text as is used in the label component to the name field for DataGrid, using the Accessibility control panel.
- Check whether the Flash movie contains a DataGrid component.
- Confirm that each DataGrid's caption text has been added to the component as an accessible name.
Step 2 is true.