Hi,
Anyone know how to change a single instance of an item renderer for a Flex tree item at runtime? To reiterate, I'm not trying to change the entire tree's item renderer like this:
tree.itemRenderer = new ClassFactory(ItemRenderer2);
I'm trying to change the item renderer of a single tree item like this (the following code does not work):
tree.selectedItem.itemRenderer = new ClassFactory(ItemRenderer2);
To put it more simply, does anyone know how to reference an instance of an item renderer and set it to a new item renderer class? I've tried using the Tree's itemToItemRenderer() method with no success.
I'd appreciate any help. Thanks!
Aaron