Chapter 23
554
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
need to use the Accessibility Speak Enable/Disable behavior to let users turn on text-to-speech
later. See “Enabling text-to-speech” on page 555.
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.
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...