Rhuno
04-29-2009, 02:43 PM
Hey all, I'm relatively new to Flex yet and have encountered a problem with button rollovers. When you rollover a button in flex, the label text changes colors and I can't figure out how to make it NOT do that.
I've tried setting the style through css using roll-over-color and it still changes no matter what I put. I have also tried extending the Button class and providing my own rollOver/mouseOver methods in which I'm using
this.setStyle("color", 0xffffff);
Still no good though. Any ideas?
UPDATE: I finally figured it out after looking at the source for mx:Button. The style I needed to set was textRollOverColor. Doh!
I've tried setting the style through css using roll-over-color and it still changes no matter what I put. I have also tried extending the Button class and providing my own rollOver/mouseOver methods in which I'm using
this.setStyle("color", 0xffffff);
Still no good though. Any ideas?
UPDATE: I finally figured it out after looking at the source for mx:Button. The style I needed to set was textRollOverColor. Doh!