User Guide
_accProps 97
If you don’t specify an accessibility property for a document or an object, any values set in the
Accessibility panel are implemented.
After you specify an accessibility property, you can’t revert its value to a value set in the
Accessibility panel. However, you can set the property to its default value (
false for Boolean
values; empty strings for string values) by deleting the property from the
_accProps object, as
shown in the following example:
my_mc._accProps.silent = true; // set a property
// other code here
delete my_mc._accProps.silent; // revert to default value
The value of _accProps must be an object. This means that if no _accProps object already exists,
you must create one before you can assign clues to the properties of the
_accProps object.
if (_accProps == undefined) {
_accProps = new Object();
}
_accProps.name = "My movie";
Example
If you change an image and want to update its accessibility description, you can use the following
ActionScript code:
my_mc.gotoAndStop(2);
if (my_mc._accProps == undefined ) {
my_mc._accProps = new Object();
}
my_mc._accProps.name = "Photo of Mount Rushmore";
Accessibility.updateProperties();
See also
Accessibility.isActive()
, Accessibility.updateProperties(),
System.capabilities.hasAccessibility