set a class to the component tag: <mx:itemRenderer> > <mx:Component className="myRenderer"> > <mx:Text styleName="myStyle"> > > </mx:Text> > </mx:Component> > </mx:itemRenderer>
and define in the CSS file myRenderer { .... } (don't put a period before the CSS class name) This solution was given to me by Alex Bernhard from Janus and I pass it on for those who also find this useful. bestm Graham --- In flexcoders@yahoogroups.com, "candysmate" <[EMAIL PROTECTED]> wrote: > > The Flex docs say: > "tems allowed in an inline component > > The only restriction on what you can and cannot do in an inline item > renderer or editor is that you cannot create an empty > <mx:Component></mx:Component> tag. For example, you can combine effect > and style definitions in an inline item renderer or editor along with > your rendering and editing logic. > > You can include the following items in an inline item renderer editor: > > * Binding tags > * Effect tags > * Metadata tags > * Model tags > * Scripts tags > * Service tags > * State tags > * Styles tags > * XML tags" > > Yet, I have an inline itemrenderer: > > <mx:itemRenderer> > <mx:Component> > <mx:Text styleName="myStyle"> > > </mx:Text> > </mx:Component> > </mx:itemRenderer> > > and the style setting makes no difference at all. > > How can I change the style for this itemrenderer please? >