Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-14-2010, 03:56 PM   #1
AlexMax
Registered User
 
Join Date: Oct 2010
Posts: 1
Question Tree Control component

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.
AlexMax is offline   Reply With Quote
Old 10-15-2010, 09:24 AM   #2
zeroin
Member
 
Join Date: Apr 2005
Posts: 54
Default

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.
zeroin is offline   Reply With Quote
Old 10-15-2010, 08:14 PM   #3
davidsm1979
Registered User
 
Join Date: Aug 2010
Posts: 15
Default

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.
davidsm1979 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:00 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.