Accessibility. updateProperties, Accessibility. isActive

Source: Internet
Author: User
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 ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.