You can create accessible documents with ActionScript code. For accessibility properties that apply to the entire document, you can create or modify a global variable called _accProps. See the _accProps property in ActionScript 2.0 Language Reference.
For properties that apply to a specific object, you can use the syntax instancename._accProps. The value of _accProps is an object that can include any of the following properties:
|
Property |
Type |
Equivalent selection in the Accessibility panel |
Applies to |
|---|---|---|---|
|
.silent |
Boolean |
Make Movie Accessible/Make Object Accessible (inverse logic) |
Entire documents Buttons Movie clips Dynamic text Input text |
|
.forceSimple |
Boolean |
Make Child Objects Accessible (inverse logic) |
Entire documents Movie clips |
|
.name |
string |
Name |
Entire documents Buttons Movie clips Input text |
|
.description |
string |
Description |
Entire documents Buttons Movie clips Dynamic text Input text |
|
.shortcut |
string |
Shortcut |
Buttons Movie clips Input text |
Modifying the _accProps variable has no effect by itself. You must also use the Accessibility.updateProperties method to inform screen reader users of Flash content changes. Calling the method causes Flash Player to re‑examine all accessibility properties, update property descriptions for the screen reader, and, if necessary, send events to the screen reader that indicate changes have occurred.
When updating accessibility properties of multiple objects at once, include only a single call to Accessiblity.updateProperties (too frequent updates to the screen reader can cause some screen readers to become too verbose).
See the Accessibility.updateProperties method in the ActionScript 2.0 Language Reference.
Comments
Comments are no longer accepted for Flash CS3. Flash CS4 is the current version. To discuss Flash CS3, please use the Adobe forum.