To specify settings that correspond to the Tab index setting in the Accessibility panel, use the
Button.tabIndex, MovieClip.tabIndex, or TextField.tabIndex properties.
There is no way to specify an Auto Label setting at runtime.
To refer to the
object that represents the entire Flash document, omit the
_accProps
parameter. The value of
must be an object. This means that if no
instanceName
_accProps
object already exists, you must create one, as shown in the following example,
_accProps
before you can assign values to the properties of the
object:
_accProps
if ( _accProps == undefined )
{
_accProps = new Object();
}
_accProps.name = "My SWF file";
When
is used without the
parameter, changes made to
_accProps
instanceName
_accProps
properties apply to the whole SWF file. For example, the following code sets the Accessibility
property for the whole SWF file to the string
and then calls
name
"Pet Store"
to cause that change:
Accessibility.updateProperties()
_accProps.name = "Pet Store";
Accessibility.updateProperties();
In contrast, the following code sets the
property for a movie clip with the instance name
name
to the string
:
price_mc
"Price"
price_mc._accProps.name = "Price";
Accessibility.updateProperties();
If you are specifying several accessibility properties, make as many changes as you can before
calling
, instead of calling it after each property
Accessibility.updateProperties()
statement, as shown in the following example:
_accProps.name = "Pet Store";
animal_mc._accProps.name = "Animal";
animal_mc._accProps.description = "Cat, dog, fish, etc.";
price_mc._accProps.name = "Price";
price_mc._accProps.description = "Cost of a single item";
Accessibility.updateProperties();
If you don't specify an accessibility property for a document or an object, any values set in the
Accessibility panel are implemented.
Global Properties
115
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?