There isn't a formal way. The styleName property will be assigned the List (actually an inner content pane), but I think after it has been added to the content pane you can reset it, like in createChildren or commitProperties. Normally, all of the styles of a renderer are supplied by styles set on the List. Which styles would you want to apply to List that are different from ones you'd want to apply to the renderer?
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of Aaron Hardy Sent: Saturday, March 14, 2009 10:19 AM To: [email protected] Subject: [flexcoders] Styling a list item renderer Hey flexers, What's the formal way to set a styleName to a list item renderer? It seems like ListBase would have an itemRendererStyleName of some sort, but I have yet to discover it. I realize in the renderer class constructor I could do something like this.styleName = 'mystyle'; but it doesn't seem flexible enough. What if I want to use the same renderer in two different lists, but styled differently? I'm just thinking there's got to be a better way that I'm missing. Thanks everyone. Aaron

