Hi,

try using itemrenderer, changing the icon first and then try for changing
the color.

regards
DB


Nable wrote:
> 
> 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 = 0xff0000;
> mc.alpha = 50;
> Of course in Flex it doesn't work like that. I have tried with
> ItemRenderer. In function updateDisplayList you can change as much as
> anything. You can set super.icon.blendMode, you can set super.icon.alpha,
> but I just couldn't find a way to color icon.
> 
> I need to color DefaultLeafIcon in runtime. Please help.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Color-icon%28s%29-in-tree-control-tp22536941p22539736.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to