IsActive (Accessibility. isActive method) publicstaticisActive (): Boolean indicates whether a secondary function is currently active and whether the player is communicating with it. You can use this method when you want your application to behave differently with screen readers or other auxiliary functions. Note: If you are playing
IsActive (Accessibility. isActive method) public static isActive (): Boolean indicates whether a secondary function is currently active and whether the player is communicating with it. You can use this method when you want your application to behave differently with screen readers or other auxiliary functions. Note: If you are playing
IsActive (Accessibility. isActive method)
Public static isActive (): Boolean
Indicates whether a secondary feature is active and whether the player is communicating with it. You can use this method when you want your application to behave differently with screen readers or other auxiliary functions.
Note: If you call this method one second or two seconds after the first appearance of the Flash window of the playback document, the returned value may be false, even if an Active Microsoft Active Accessibility (MSAA) the same is true for clients. This is due to the asynchronous communication mechanism between Flash and MSAA clients. You can solve this restriction by making sure that the delay is 1 to 2 seconds after loading your document, and then calling this method.
Return Boolean-A Boolean value: If Flash Player is communicating with a secondary feature (usually a screen reader), true is returned; otherwise, false is returned.
Example: The following example checks whether a secondary feature is currently active:
If (Accessibility. isActive ()){
Trace ("An accessibility aid is currently active ");
} Else {
Trace ("There is currently no active accessibility aid ");
}
UpdateProperties (Accessibility. updateProperties method)
Public static updateProperties (): Void
Make all changes to the _ accProps (Auxiliary Function attribute) object take effect. For information about how to set secondary feature properties, see _ accProps.
If you modify the secondary feature attributes of multiple objects, you only need to call Accessibility. updateProperties () once. Multiple calls may result in lower performance and uncomprehension of the screen reader results.
For example, if you want to update an image and want to update its auxiliary function description, you can use the following 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 ();