[flexcoders] Re: Color icon(s) in tree control

2009-03-17 Thread sandi_krese
Anybody? Please ...

[flexcoders] Re: Color icon(s) in tree control

2009-03-17 Thread sandi_krese
Below you can read custom TreeItemRenderer, where I'm trying to color defaultleaficon in red (in original it's white square). The last line super.icon = mc; is obviously not valid. Please help me. public class CDSTreeItemRenderer extends TreeItemRenderer {

[flexcoders] Color icon(s) in tree control

2009-03-16 Thread sandi_krese
Hi, I have tried everything and just couldn't find a solution. I'd like to color icons in tree control just as it would be possible in Flash: mc.color = 0xff; mc.alpha = 50; Of course in Flex it doesn't work like that. I have tried with ItemRenderer. In function updateDisplayList you can

[flexcoders] Re: Color icon(s) in tree control

2009-03-16 Thread sandi_krese
Hi, changing icon is not the issue, changing color of icon is. Can you be more specific about changing color? --- In flexcoders@yahoogroups.com, duraibalaji duraibal...@... wrote: Hi, try using itemrenderer, changing the icon first and then try for changing the color. regards DB