|
Using captioning
For users who are hearing impaired, you can add text captioning to your movies. Captioning is the practice of displaying text that corresponds to spoken narration or other sounds being played. Using the captioning behaviors in addition to the text-to-speech behaviors lets you make your movies accessible to users with many types of disabilities.
There are two captioning behaviors that are designed to be used together. Each is designed to be used with the keyboard navigation and text-to-speech behaviors. For information about applying text-to-speech behaviors, see Enabling text-to-speech features.
To enable captioning, you attach the Accessibility Captioning behavior to a text sprite that will display the captions. Next, you attach the Accessibility Sync Caption behavior to a sprite that has already had speech enabled with the text-to-speech behaviors.
To apply the Accessibility Captioning behavior:
| 1 |
Place the text sprite that you want to display caption text on Stage. |
| 2 |
Drag the Accessibility Captioning behavior from the Library palette to the text sprite. |
| 3 |
In the dialog box that appears, select the behavior group name for the scene. This step associates the accessibility behaviors in the scene with one another so they work properly. |
| 4 |
Click OK. |
 |
|
Next, you attach the Accessibility Sync Caption behavior to a sprite that has already had speech enabled.
To apply the Accessibility Sync Caption behavior:
| 1 |
Apply the keyboard navigation behaviors to sprites in your scene. For more information, see Enabling keyboard navigation. |
| 2 |
Apply the text-to-speech behaviors to sprites in your scene. For more information, see Enabling text-to-speech features. |
| 3 |
Drag the Accessibility Sync Caption behavior from the Library palette to the sprite that will trigger the text-to-speech feature. This could be a text sprite that has the Accessibility Speak behavior attached or another sprite that will trigger speech with the Accessibility Speak Member Text behavior attached. |
| 4 |
In the dialog box that appears, select the behavior group name for the scene from the Which Accessibility Group Does This Belong To pop-up menu. This associates the accessibility behaviors in the scene with one another so they work properly.
 |
| 5 |
Select the Clear When Done option if you want the caption text to be cleared from the captioning box after it has been spoken. |
| 6 |
In the first At Word text box, enter the number of the word in the text that will be spoken where you want the captioning to begin. For example, if you want to begin captioning at the first word of the spoken text, enter the number 1. |
| 7 |
In the first Display How Many of the Words That Follow text box, enter the number of words to display after the starting word number that you selected in the previous step. This is the number of words that can appear in the captioning sprite when the captioning begins. For example if you want the first section of text to begin at the first word and end at word 15, enter 1 in the previous step and 15 in the Display How Many of the Words That Follow text box. These words are replaced in the captioning display sprite by later sections of the text being spoken. You select the number of words in each section by using the remaining text boxes in the dialog box. |
| 8 |
In the next At Word text box, enter the number of the word where the second section of text you want to display begins. For example, if you want the second section of displayed text to begin at word 16 of the spoken text, enter 16 in the At Word text box. |
| 9 |
In the Display How Many of the Words That Follow text box, enter the number of words to display after the word number you selected in the previous step. For example if you want to display 22 words of text after word 16, enter 22 in this text box. |
| 10 |
In the remaining text boxes, enter the numbers of the first word of each section of text followed by the number of words in each section. To use more than five sections, drop this behavior on the sprite again. This procedure can be repeated as often as necessary. |
| 11 |
When you have finished entering values in the dialog box, click OK. |
 |
|
Not all users will want to view captioning. In the sample movie, you use the CC icon in the navigation strip to toggle the captioning off and on. This functionality is made possible by the Accessibility Speak Enable/Disable behavior, which offers caption control in addition to speech control.

To apply the Accessibility Speak Enable/Disable behavior to control captioning:
| 1 |
Apply the keyboard navigation behaviors to sprites in your scene. For more information, see Enabling keyboard navigation. |
| 2 |
Drag the Accessibility Speak Enable/Disable behavior from the Library palette to the sprite you want to use to toggle the captioning behaviors. |
| 3 |
In the dialog box that appears, enter the behavior group name for the scene so that this behavior is associated with the other behaviors in the scene. |
| 4 |
Select an event to toggle the on/off state of the captioning behaviors. This can be a mouse click or the beginning or ending of the sprite in the Score. |
| 5 |
Select whether to turn captioning on or off when the event you selected in the previous step occurs. |
| 6 |
Enter the words to be spoken when captioning is turned on. |
| 7 |
Enter the words to be spoken when captioning is turned off. |
| 8 |
Click OK. |
 |
|
|