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 (
values; empty strings for string values) by deleting the property from the
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
you must create one before you can assign clues to the properties of the
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()
System.capabilities.hasAccessibility
,
Accessibility.updateProperties()
for Boolean
false
object, as
_accProps
object already exists,
_accProps
object.
_accProps
,
_accProps
97
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?