MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 270

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

If you are specifying several accessibility properties, make as many changes as you can
before calling
Accessibility.updateProperties()
property statement:
_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";
Accessbility.updateProperties();
If you don't specify an accessibility property for a movie 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
my_mc._accProps.silent = true; // set a property
// other code here
delete my_mc._accProps.silent; // revert to default value
To revert all accessibility values for an object to default values, you can delete the
instanceName._accProps
delete my_btn._accProps;
To revert accessibility values for all objects to default values, you can delete the global
object:
_accProps
delete _accProps;
If you specify a property for an object type that doesn't support that property, the property
assignment is ignored and no error is thrown. For example, the
supported for buttons, so a line like the following is ignored:
my_btn._accProps.forceSimple = false; //ignored
Example
Here is some example ActionScript code that takes advantage of dynamic accessibility properties.
You would assign this code to a nontextual icon button component that can change which icon
it displays.
function setIcon( newIconNum, newTextEquivalent )
{
this.iconImage = this.iconImages[ newIconNum ];
if ( newTextEquivalent != undefined )
{
if ( this._accProps == undefined )
this._accProps = new Object();
this._accProps.name = newTextEquivalent;
Accessibility.updateProperties();
}
}
See also
Accessibility.isActive()
System.capabilities.hasAccessibility
270
Chapter 12: ActionScript Dictionary
object:
, Accessibility.updateProperties(),
, instead of calling it after each
false
object:
_accProps
forceSimple
for Boolean
property isn't

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents