The backgroundColor defaults to transparent so that the highlight and selection can be seen underneath the renderer. You should be able to set backgroundColor to some color and get a background as long as the component you are subclassing implements a background (some don't). You can always just draw a colored rectangle. If you do have a backgroundColor you won't see highlight and selection unless you draw your own representation or turn off the background. There are examples related to this on my blog http://blogs.adobe.com/aharui/item_renderers/
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Wright Sent: Thursday, May 10, 2007 4:29 PM To: [email protected] Subject: [flexcomponents] How to change background/highlight/selected color in an itemRenderer? I've been trying to change the background, highlight, and selected color of items in a tree or list using custom itemRenderers. I haven't been able to do it yet. I can set the color of children components of the itemRenderer, but it seems the background, highlight, and selected color are part of the owner (tree or list). What should the itemRenderer be doing to accomplish this?
