Skip to content

Instantly share code, notes, and snippets.

@itsDanOades
Created July 2, 2014 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itsDanOades/79aa2ba5274511a5d801 to your computer and use it in GitHub Desktop.
Save itsDanOades/79aa2ba5274511a5d801 to your computer and use it in GitHub Desktop.
Setting Accessibility Properties on a Flash Sprite
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