E-mail List Archives

Re: AccessibilityProperties in Flex


From: Andrew Kirkpatrick
Date: Apr 27, 2007 10:50AM

> Is it possible to set individual accessibility properties for
> Flex 2.0 components that have accessibility built in?

Sure is. Here, for example is how you can set the name on a comboBox
that has id="myComboBox" :

public function init():void{
myComboBox.accessibilityProperties = new
myComboBox.accessibilityProperties.name = "Put the
appropriate name here";

> For example, I'd like to set the AccessibilityProperties.name
> property for a ComboBox. Can I do this using MXML or ActionScript?

If you just want the name you can use the code above in actionscript or
you can use toolTip on the <mx:ComboBox> element and the compiler also
uses that for the accessibility name.