
430
Chapter 20: Making Director Movies Accessible
6
In the dialog box that appears, enter a name for the behavior group.
Because the accessibility behaviors work together and are dependent on one another, a group
name associates all the accessibility behaviors used in a given scene of your movie with one
another. When you apply behaviors to a different scene of your movie, you might want to
use a different group name. For example, you might use Accessibility_Scene_1. In addition,
there should only be one instance of the Accessibility Target behavior in any given scene
of your movie.
7
Select an initial state for text-to-speech, either enabled or disabled. If you select disabled, you
must use the Accessibility Speak Enable/Disable behavior to let users turn on text-to-speech
later. For more information, see
“Enabling text-to-speech” on page 431
.
8
Click OK.
The next step in the process is to attach the Accessibility Keyboard Controller behavior to a sprite.
This behavior intercepts keystrokes from the keyboard and enables those keyboard events to be
used for navigation of the sprites on the Stage. You attach the Accessibility Keyboard Controller
behavior to an editable text sprite that you place outside the visible part of the Stage.
To apply the Accessibility Keyboard Controller behavior to an off-Stage editable text sprite:
1
Place an editable text sprite on the Stage. Do not use a field sprite.
2
Move the text sprite off the Stage into the area immediately below the Stage. You can expand
the Stage window to display more of this area if necessary.
3
Drag the Accessibility Keyboard Controller behavior from the Library palette to the sprite.
4
In the dialog box that appears, select the accessibility group name for the scene, such as
Accessibility_Scene_1.
5
Click OK.
6
Select the editable text sprite if it is not still selected.
7
Using the arrow keys, move the sprite off the edge of the Stage until it is no longer on the visible
part of the Stage.
Note:
If the editable text sprite receives a Return character, its bounding rectangle can expand
vertically. To prevent this from happening and unexpectedly causing the sprite to become visible on
the Stage, set the sprite’s Framing property to Fixed in the Property inspector’s Sprite tab.
Now that the Accessibility Target behavior is attached to the shape sprite and the Accessibility
Keyboard Controller behavior is attached to a text sprite, you are ready to apply the Accessibility
Item or Accessibility Text Edit Item behaviors. To enable navigation to a sprite with the Tab key,
attach the Accessibility Item behavior to the sprite. To enable navigation to an editable text sprite
with the Tab key, attach the Accessibility Text Edit Item behavior to the sprite.
To apply the Accessibility Item or Accessibility Text Edit Item behaviors:
1
Drag the Accessibility Item or Accessibility Text Edit Item behavior from the Library palette to
the designated sprite.
2
In the dialog box that appears, select the same group name that you used when applying the
Accessibility Target behavior—for example, Accessibility_Scene_1.
3
You can specify a script string to be executed when the user presses Enter (Windows) or Return
(Macintosh) while the sprite is selected. You can use any valid script string, such as a
go to
frame 20
method or a call to a separate handler that you have written, such as
startAnimation
.
4
Click OK.
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...