The following example shows how you can determine which button was pressed in a ButtonBar control in Flex by listening for the
itemClick event. You can then use the
label attribute in the ItemClickEvent object to find out which button was clicked.
Full code after the jump.