To Access the multiple selected items in a Tree control we got to enable the multiple selection in the Tree control like below.
allowMultipleSelection=”true”
Then we can access the selectedItems of the Tree control with the property “selectedItems” like below code.
for(var i:int=0;i<tree.selectedItems.length;i++)
{
trace(tree.selectedItems[i].@NAME);
}
Here tree is the id of the Tree control and NAME is the attribute name of the dataProvider of the Tree control.Check the code for clearance.


March 1, 2009 at 4:46 pm |
Just passing by.Btw, your website have great content!