I've been given an accessibility requirements document.
According to that document, a 'field' in a form is part of a group
of controls, the group having its own label . The 'field' is
actually built using a number of items:
- Error indicator : Visual indicator with tooltip
explaining which error occured on this field. Not focusable,
associated with the input control.
- Mandatory field indicator : Visual indicator with
tooltip “This field is mandatory”. Not focusable,
associated with the control.
- Label : Not focusable, associated with its control.
- Input control: When focus is on the control, it must be
highlighted with a border around it. Screenreader must read various
texts associated with it in this order: Group label , Error
indicator tooltip , Mandatory indicator tooltip , Label 
and Hint  (and I guess current value, but that's missing from
- Hint : Not focusable, associated with its field.
In practice, the hint is not used. A custom Label component
is used for the label, it has a "forInput" property to bind it to
the TextInput (or ComboBox etc.). The "mandatory" indicator is also
added using custom Text or Label elements, with a forInput
attribute binding them to the input control's ID.
How is it possible to read all of that data when the input
control is focussed? Should the input's
accessibilityProperties.name value be updated to concatenate all of
them (e.g. when the form is submitted, and validation rules fail)?
Can you think of any better solution? (I'm new to Flex, the app is
huge and almost complete, I was assigned the task of testing and
fixing accessibility issues.)