|
//deletes
the currently selected node private
function deleteSelectedNode():void { var
nodeToDelete:XML = XML(treeData.selectedItem); //reference to
the node to delete var
xlcParent:XMLListCollection = new XMLListCollection(nodeToDelete.parent().children());
//collection of nodes containing the node to delete var
iIndex:int = xlcParent.getItemIndex(nodeToDelete); //index of
node to delete in collection xlcParent.removeItemAt(iIndex);
//remove the node treeData.invalidateList();
//refresh the tree }//deleteSelectedNode From: -----
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; =========================== It is
lengthy. so.. I want Anyone who has idea other to know simple
code rather than above. Thank
you, Brayn.
|
- RE: [flexcoders] Fw: [BETA3] I found how can remove the s... Tracy Spratt
- Re: [flexcoders] Fw: [BETA3] I found how can remove ... Bryan Choi
- Re: [flexcoders] Fw: [BETA3] I found how can rem... Michael Schmalle

