# Creating accessible hotspots using invisible buttons

ID: FLASH6

Technology: flash

Type: Technique

## When to Use

- Adobe Flash Professional version MX and higher
- Adobe Flex

## Description

The objective of this technique is to provide text alternatives that serve the same purpose as the clickable hotspots of an image. Each hotspot serves as a clickable region for a part of the image which can trigger an action (such as opening a web page corresponding to the hotspot). The hotspots are implemented as invisible Flash buttons, which are each given an accessible name that describes the hotspot's target.

## Examples

### Graphic with accessible clickable regions

1. Add the original graphic that needs to have clickable hotspots to the stage.

2. For each hotspot, do the following:

   1. Create a new button symbol by choosing "New Symbol" from the Flash Professional 'Insert' menu or by using the Ctrl + F8 shortcut.
   2. Inside the button symbol, create a shape that matches the clickable surface.
   3. Place the newly created button on top of the original graphic.
   4. Open the button's properties panel, and choose "Alpha" from the "Style" dropdown list under "Color Effect". Change the value of the "Alpha" slider that appears to zero so that the button becomes invisible.
   5. Using the Accessibility panel, specify a value for the "tabindex" field to give the button a logical position in the tab order.
   6. Using the Accessibility panel, specify an accessible name that describes the purpose of the hotspot.

adding the graphic to the Flash authoring stage
making a button invisible using the Properties panel
setting the button's name using the Accessibility panel

The result can be seen in the working example of creating accessible hotspots using invisible buttons. The source of creating accessible hotspots using invisible buttons is available.

## Tests

### Procedure

Find all images with hotspots. For each hotspot, confirm that:

1. The hotspot is implemented as an invisible button
2. The hotspot is provided with an accessible name, either through the Accessibility panel or through ActionScript

### Expected Results

- #1 and #2 are true

## Related Techniques

- G91