So my fix is this: MyComboRenderer <mx:HBox rollOver="onRollOver();" rollOut="onRollOut();">
<mx:Script> ... private function onRollOver():void { lblGroup.setStyle("color", getStyle("textRollOverColor")); } private function onRollOut():void { lblGroup.setStyle("color", getStyle("color")); } ... </mx:Script> .... </mx:HBox> You'll notice I just listen for the rollOver/rollOut events and handle it there. It uses the textRollOverColor style that is set on the ComboBox :) --- In flexcoders@yahoogroups.com, "cwicky99" <codecr...@...> wrote: > > So I have an itemRenderer which simply displays text and an > image...something like: > > <mx:HBox> > <mx:Image .... /> > <mx:Label text="{data.anme}" /> > </mx:HBox> > > My ComboBox is configured in MXML such as: > > <mx:ComboBox id="foo" itemRenderer="MyComboRenderer" /> > > My CSS has: > > ComboBox { > textRollOverColor=0xFF0000; > } > > So what I want is for the items in my ComboBox ("foo") to have "red" > text on the Label when the item is rolled over...but this isn't > happening. How can I get this to work? I should mention I prefer to > keep the style stuff out of the code and in a CSS file. >