I've
done the same thing - works great. Now here's a question - how to get the
expansion to animate like it does when you click on the icon. I haven't
figured out how to do that just yet.
Jeff
__._,_.___-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of EECOLOR
Sent: Monday, September 25, 2006 4:32 AM
To: [email protected]
Subject: Re: [flexcoders] How to expand Tree Item, by clicking on Item itself?Hello,just a guess that might help you further. Try and use something like this:_tree.addEventListener(ItemClickEvent.ITEM_CLICK, _someHandler);private function _someHandler(e:ItemClickEvent):void{_tree.expandItem(_tree.selectedItem, true, true);// or_tree.expandChildrenOf(_tree.selectedItem, true);// orvar openItems_arr:Array = _tree.openItems as Array;openItems_arr.push(_tree.selectedItem);_tree.openItems_arr = openItems_arr;};Greetz Erik
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

