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 (
values; empty strings for stringvalues) by deleting the property from the
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
exists, you must create one before you can assign clues to the propertiesof the
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
description for valid names).
instanceName:String
dynamic text field, or input text field. To refer to the
entire Flash document, omit
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)
(Accessibility.updateProperties method)
(capabilities.hasAccessibility property)
116
ActionScript language elements
- An accessibility property name (see the following
instanceName
- The instance name assigned to an instance of a movie clip, button,
.
instanceName
_accProps
object that represents the
_accProps
,
updateProperties
,
hasAccessibility
for Boolean
false
object, as
_accProps
objectalready
_accProps
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?