a couple of points which may help you in your endeavor... yourTree.selectedItem is a reference to data provider element which is currently selected. So, if your tree is backed by an XML data structure, this would point to the XML node which is currently selected with the tree control...
yourTree.isItemOpen(item): item here expects to be an element in your tree's data provider yourTree.expandItem(item, true): again, item is an element in your tree's data provider. the second argument is boolean denoting if you want to close or expand the tree branch good luck. --- In [email protected], "Ramanamurthy Medarametla" <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm new to flex. I have a requirement that i have to expand all tree > nodes when my tree initializes. > it is showing only one parent node, but i need to display all nodes > expanded some thing shown below. > > 1234 > 8923 > ---821932 > ---348273 > 9821 > ---342233 > 342342 > ---425231 > ---412412 > -- 5678 > > > Thanks in advance >

