Change color in ToggleButtonBar on mouse over
I have a ToggleButtonBar, Exist any way in Flex to c开发者_运维知识库hange font color on mouse over in a ToggleButtonBar?
I try using hover in ToggleButtonBar style and:
mouseOver="buttonBar.setStyle('color','#FFFFFF');"
But that dosen't work, any ideas?
Maybe
Flex help? Change text colour on MouseOver?
will help you.
If I were you, I'd create a custom skin for ButtonBarButton and set it in styles. Within your skin there would be states, one of them being 'hovered' or something like that. There you can set the color of your label depending on that state:
<s:Label color.hovered="#FFFFFF" />
You can style it using css:
mx|ButtonBarButton
{
textRollOverColor: #FFFFFF;
}
精彩评论