PDA

View Full Version : Tree Control component


AlexMax
10-14-2010, 03:56 PM
Hi!

I whant to make a tree node selection in action script code. May be it is possible to send some type of message to a tree component to select node that I whant (for example with key 3). Just as tree selects node when somobody click on it. Is it possible?

Guru, pleasure help!

Best regards, Alexander.

zeroin
10-15-2010, 09:24 AM
Tree has methods like
expandChildrenOf(item:Object, open:Boolean)

and
expandItem(item:Object, open:Boolean, animate:Boolean = false, dispatchEvent:Boolean = false, cause:Event = null):

Which can do what you want.

davidsm1979
10-15-2010, 08:14 PM
You shold use as zeron said
expandChildrenOf(item:Object, open:Boolean)
expandItem(item:Object, open:Boolean, animate:Boolean = false, dispatchEvent:Boolean = false, cause:Event = null):

but you need to expand all parents of the disere node.