----- Original Message -----
From: Bryan Choi
To: flexcoders
Sent: Tuesday, May 23, 2006 9:33 PM
Subject: [BETA3] I found how can remove the selected item of
mx.controls.Tree. Hi, all.
var treeItem :Object = mxTree.selectedItem;
var parentItem :Object = mxTree.getParentItem ( treeItem ); var items :ICollectionView = treeDD.getChildren (parentItem); var len :int = items.length; for ( var i:int=0; i<len; i++ ) { if ( items [EMAIL PROTECTED] == [EMAIL PROTECTED] ) { treeDD.removeChildAt ( parentItem, mxTree.selectedItem, i ); break; } } ===========================
It is lengthy. so..
I want Anyone who has idea other to know simple code
rather than above.
Thank you,
Brayn.
-- 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
YAHOO! GROUPS LINKS
|
- [flexcoders] Fw: [BETA3] I found how can remove the selec... Bryan Choi
- RE: [flexcoders] Fw: [BETA3] I found how can remove ... Tracy Spratt
- Re: [flexcoders] Fw: [BETA3] I found how can rem... Bryan Choi
- Re: [flexcoders] Fw: [BETA3] I found how can... Michael Schmalle