Text Equivalents in Flash
Estimated Time to Complete:
30 minutes
Objective:
In this lab, you will learn how to:
- Associate text equivalents with graphic elements.
- Associate text equivalents with the overall movie.
- Bring up and use the Accessibility Panel.
- Expose and hide objects from the screen reader.
- Expose and hide child objects from the screen reader.
- Determine how a screen reader may interpret a Flash presentation.
- Test your presentation.
Prerequisites:
A basic working knowledge of Flash.
Version Information:
Flash MX and higher only.
Files:
Introduction
One of the basic techniques that all Flash designers know is how to
manipulate images and include them in their own presentations. Images
usually dominate what the user sees, but also present accessibility issues.
With the recent releases of Flash, you can help individuals who rely
on screen readers. This lab will walk you through the steps involved and
give you a glimpse at the accessibility panel. The lab is purposely
kept simple, and the techniques you learn here will be used in other labs.
Providing text equivalents is one of the most effective ways to open
up your presentation to individuals with vision disabilities. The text
equivalents will be exposed to a screen reader, which then reads your
text to the user.
Note: Not all graphics need to have a text
equivalent. If you feel that a graphic does not convey any information,
it is best to hide this graphic from the screen reader.
Getting started
Creating a presentation
To Begin:
- Start Flash.
- Create a new file.
To import the images:
- Select the 'File' menu.
- Mouse over 'Import,' and Select 'Import to Stage' from the menu that pops up.
- Browse to the directory containing Smiley.gif and hammer.jpg.
- Select hammer.jpg and press the 'Open' button.
- Slide the hammer image to the upper left part of the stage.
- Repeat the process for Smiley.gif .
- Slide the smiley image below the hammer image.
- Add the static text 'The Happy Hammer Company' to the right of both
the smiley and hammer images.
- Add static text "Where our hammers are happy" underneath
the text above.
You should now have something that looks like Image
1:
Review how a screen reader would read the Flash presentation in
its current status:
As a designer, you now have to make a decision. Does the hammer image
convey information? Since it is the logo of the company, then you should
have a description of the hammer hitting a nail. The smiley face is less
important, so you could hide it from the screen reader.
Working with the Accessibility Panel
There are two elements that you can expose to the screen reader that
benefit the user:
- Hammer image,
- Movie itself.
Begin by making the image accessible.
To convert an image to a symbol:
- Select the image using the arrow tool, then right-click on the image.
This will bring up a submenu.
- Select the 'Convert to Symbol' menu item, which brings up the Convert
to Symbol dialog box (see Image 2)
- For the behavior, select 'Movie Clip.'
- Give it an appropriate name, such as Hammer_Image.
- Press the 'OK' button.

Image 2: Convert to Movie Clip to make image accessible.
To assign text to an image in Flash MX and Flash MX Pro 2004:
- If the Properties Panel is not showing, press Ctrl-F3.
- Select the Hammer_Image that you created in the previous step.
- In the properties window on the right-hand side, select the icon
of a little man (see Image 3).

Image 3: "Little man" icon in Convert to Symbol Dialog
Box
- You should now see the Accessibility Panel (see
Image 4).
- By default, the 'Make Object Accessible' checkbox is selected. This
allows you to type in a descriptive name.
- Although there are no elements inside this element, deselect 'Make
Child Objects Accessible'.
- For the name, type in 'A hammer hitting a nail.'
- For the description, type in 'This image depicts a hammer hitting
a nail, which is our company logo.'
- Leave the shortcut blank.
- Close the dialog box.
To assign text to an image in Adobe Flash CS4: (And other CS versions)
- If the accessibility panel is not showing, the first step is to bring it up. You can do this by going to Window, Other Panels, Accessibility, or simply by hitting Shift+F11.
- By default, the 'Make Object Accessible' checkbox is selected. This
allows you to type in a descriptive name.
- Although there are no elements inside this element, deselect 'Make
Child Objects Accessible'.
- For the name, type in 'A hammer hitting a nail.'
- For the description, type in 'This image depicts a hammer hitting
a nail, which is our company logo.'
- Leave the shortcut blank.
- Close the dialog box.
Note: It is important to include the punctuation in the alternative
text. The comma denotes a brief pause to the screen reader. Not having
the punctuation can cause the screen reader to run the sentences together.
You have now made a single image more accessible by supplying a text
equivalent for it. Make the movie even more accessible by doing the same
for the entire presentation. It follows the same format. To do this, you
will need to get the accessibility panel for the stage.
To make a movie accessible:
- Deselect all elements by selecting in a blank space somewhere on
the stage, such as the upper-left or lower-right part of the screen.
- You can now select the accessibility icon in the Properties Panel,
the same way you did for the hammer image.
- This will bring up a slightly different dialog box (see
Image 5).
- For this dialog (see Image
5 ) make sure the 'Make Movie Accessible'
checkbox is selected, as well as the 'Make Child Objects Accessible'.
- The 'Auto-Label' checkbox is irrelevant in this case. For more information,
see the section below on Advanced Topics.
- For the name field, type 'The Happy Hammer Company Presentation.'
- For the description field, type 'This presentation is for the Happy
Hammer Company, a company devoted to making hammers happy!'
- Close the dialog box.
Advanced Topics
Exposing and Hiding Child Objects
There are two other short topics that need to be addressed. The first
is the 'Make Child Objects Accessible' checkbox. This checkbox works with
elements that contain other elements, and determines whether or not those
inner elements are read by the screen reader. For example, the movie you
just created has a text equivalent, but also contains inner elements that
you wish to have read. If you had deselected the 'Make Child Objects Accessible'
checkbox, the screen reader would have never read the hammer logo, nor
the text of the Happy Hammer Company. While in this case it probably will
not matter, you can imagine that normally there would be much more text
in the presentation.
Auto Labeling
Whenever a designer works with user interface elements, such as buttons
and textfields, they are usually associated with some kind of text, such
as the label on a button. Flash will, by default, try to associate labels
that are relatively close to buttons and textfields to those buttons and
textfields. In other words, the screen reader will assume that a label
appearing close to a button belongs to that button. Sometimes this is
a nice feature; but it has the restriction of only associating one word
for the entire label! If you want multiple words to be read for a user
interface component, you will need to add an alternative text as described
in this tutorial. The problem now is that you may have two pieces of text
that need to be read for only one component. To eliminate this, turn off
auto-labeling, such that it only reads the explicit alternative text you
typed in, and not the label that is closest to it.
Testing
Your screen reader is not capable of reading your Flash presentation
from within Flash.
To test your movie:
- Start your screen reader.
- Then, inside Flash, select the 'File' menu, then the 'Publish Preview'
sub-menu, and finally the 'Default HTML' item.
Optionally, you can press Ctrl-F12. This will generate a temporary file
that your screen reader can read.
Note:
you will probably want to download a screen reader such as JAWS if you
have not already.
Summary
In this lab, you were taught:
- How to provide alternative text to elements in a presentation, as
well as the entire presentation.
- About the Accessibility Panel, including the ability to expose or
hide elements, as well as any inner elements that an element may contain.
- How a screen reader might interpret a Flash movie.
The next lab will present a lab on the speaking order
of elements in Flash.