Created
July 2, 2014 16:41
-
-
Save itsDanOades/79aa2ba5274511a5d801 to your computer and use it in GitHub Desktop.
Setting Accessibility Properties on a Flash Sprite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myDisplayObject : Sprite = new Sprite(); | |
//Inform the screen reader that the Sprite will serve as a button | |
myDisplayObject.buttonMode = true; | |
var accessibilityProperities = new AccessibilityProperties(); | |
//The descriptive name to be read aloud by the screen reader or rendered in braille | |
accessibilityProperities.name = “My button”; | |
//A description or instructions to the user on how to use the control | |
accessibilityProperities.description = “Press Enter to activate”; | |
myDisplayObject.accessibilityProperties = accessibilityProperities; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment