Hi,
Ive been given the task to change the highlight programmatically of the
different nodes in a tree component.
The functionality would be something like this:
The user selects a node (highlighting it), then based on some event, another
node in the tree is highlighted with a DIFFERENT color, leaving both nodes
highlighted with their respective default and special colors.
Thats the basic functionality Im looking after. I digged through the
source and found that the highlight can be found like this.
for(var i:Number = 0; i < treeInstance.rows.length; i++)
{
trace(treeInstance.rows[i].highlight)
}
I tried changing the color of the treeInstance.rows[x].highlight MovieClip,
but found that it is only possible if it is the selected node in the tree
component, even though the for loop indicates that the MC exists.
I also had a look at using treeInstance.cellRenderer = blah; But I
couldnt find any help on that either.
I would really appreciate if you guys could help me find a solution to this
problem (at this stage Im not fussy about OOP or clean code).
TIA
Caludia
_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search!
http://toolbar.msn.co.uk/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders