开发者

Change color in ToggleButtonBar on mouse over

开发者 https://www.devze.com 2023-03-27 00:49 出处:网络
I have a ToggleButtonBar, Exist any way in Flex to c开发者_运维知识库hange font color on mouse over in a ToggleButtonBar?

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

精彩评论

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