Hi,

I have a tree filled with an XMLListCollection, all nodes are named
<node>.

The structure is like this:

<node locationid='1'>
<node locationid='3'>
<node locationid='76'/>
</node>
</node>

but on a much greater scale.

Now I have set the Tree component to allowMultipleSelection=true so
that the user can select multiple nodes, that works no problem.  I have
also set an itemClick function to trigger when the user selects the
item or items.  By doing this I can work out if one item is selected
or multiple:

if(Tree(event.target).selectedItem){
dosomethingforoneselection; //this works ok
}else if(Tree(event.target).selectedIndicies){
    for(var i:int = 0;i<Tree(event.target).selectedIndicies.length;i++){
var h:int = int(Tree(event.target).selectedIndicies[i];
}
}

Ok, now I have the index of each item selected on the Tree, so how do
I get the locationid from the index?

Completely mind boggled!

Thanks ever so much if you can help!

Kind Regards,

Iain

Reply via email to