The method you need is in the help file under Tree, as it happens.
I guess a mix of the change event and selectedItem (off the top of my head and
without checking)
would probably do what you want.
hth
Jim.
expandChildrenOf () method
public function expandChildrenOf(item:Object, open:Boolean):void
Opens or closes all the tree items below the specified item.
-Original Message-
From: flexcoders@yahoogroups.com on behalf of nhid
Sent: Wed 05/12/2007 18:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree - Open all child layers when open branch
Hi,
I have this tree structure:
Branch1
ChildA
Child1
Child1.1
Child1.2
Child1.2.1
Child2
Child2.1
Child2.1.1
Child2.1.2
Child2.2
Child2.2.1
How can I open all the child layers at once when I click on the folder icon
of Branch1?
Thanks!
__
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT
registration No. 648874577.
This e-mail is confidential and may be privileged. It may be read, copied and
used only by the intended recipient. If you have received it in error, please
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637
1010. Please then delete the e-mail and do not disclose its contents to any
person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
__winmail.dat