开发者

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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜