Check out the TreeDataProvider API in the ASDoc.  You’ll see the methods you should use.  Tree.dataProvider should provide you with the root of the tree.

 

Matt

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jwaknitz
Sent: Wednesday, May 04, 2005 12:53 PM
To: [email protected]
Subject: [flexcoders] Control Tree with a Button

 

Anyone know how I would be able to go through nodes of a tree using a
button?  My tree has two levels and I would like to be able to go
through just the child nodes for each parent node.  Can anyone show
me
some code to do this?  I'm stumped. 

I'm dynamically adding nodes to the tree.

<mx:Tree id="treeMenu" indentation="3" height="100%" width="100%"
change="changeMenu()" defaultLeafIcon="" folderClosedIcon=""
folderOpenIcon="" />







Yahoo! Groups Links

Reply via email to