I have a tree component called my_tree. I have a handler for reacting to the user clicking an item in the Tree that looks like this:
ActionScript Code:
listenerObject = new Object();
listenerObject.change = function(eventObject){
selectItem( my_tree.selectedIndices[0] );
}
my_tree.addEventListener("change", listenerObject)
Then selectIem() deals with whatever item the user has selected. But now what I'm trying to do is exactly the opposite-- I want to make an actionscript call that will select an item in the tree
as though the user had selected it with the mouse.
I was barking up a tree that looked like this:
ActionScript Code:
my_tree.selectedIndices[0];
though that obvoiusly that isn't right. Any advice?