Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Submitting an ECR since I've seen this question come up a few times and had at least 2 separate people ask if this is possible, and if so, how do you do it.
Steps to reproduce:
1. Create a ButtonBar control and try and assign unique icons for the base states (up, down, over).
Actual Results:
You can easily set the icon style when using an Array/ViewStack as a data provider. But there doesnt seem to be an "easy" way to set upIcon, overIcon, downIcon separately.
Expected Results:
It's possible, but too tricky. It should be easier.
Workaround (if any):
(a) use the FCK to create an "uber-button" which defines its own states: up, over, down, disabled, selectedUp, selectedOver, selectedDown, selectedDisabled
(b) using ActionScript, listen for the creationComplete event from the ButtonBar control, then use <ButtonBar>.getChildAt() to loop over each ButtonBar child button instance and manually set the icon states, or set the styleName property on the ButtonBarButton instance.