User Guide

116 ActionScript language elements
After you specify an accessibility property, you can't revert its value to avalue set in the
Accessibility panel. However, you can set the property to itsdefault value (
false for Boolean
values; empty strings for stringvalues) by deleting the property from the
_accProps object, as
shownin 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 objectalready
exists, you must create one before you can assign clues to the propertiesof the
_accProps
object.
if (_accProps == undefined)
{
_accProps = new Object();
}
_accProps.name = "My movie";
Availability: ActionScript 1.0; Flash Player 6,0,65,0
Parameters
propertyName:Boolean or String - An accessibility property name (see the following
description for valid names).
instanceName
instanceName:String
- The instance name assigned to an instance of a movie clip, button,
dynamic text field, or input text field. To refer to the
_accProps object that represents the
entire Flash document, omit
instanceName.
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
isActive (Accessibility.isActive method), updateProperties
(Accessibility.updateProperties method)
, hasAccessibility
(capabilities.hasAccessibility property)