After drilling down with "the engineer", came up with this hack: TreeListData(IDropInListItemRenderer(tree.listItems[event.rowIndex][0]). listData).depth;
Make sure you import mx.controls.treeClasses as well as mx.controls.listClasses; We're currently working on creating or exposing API's that should make this easier in the future. Belinda -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Tuesday, March 14, 2006 10:55 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] identity tree level when on click ? In 1.5 you could just call getParent() until it's null and count. 2.0 it's harder if you don't know your data structure. I was just talking to the engineer who's working on Tree and he's investigating some approaches. Matt -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sinacapho Sent: Monday, March 13, 2006 6:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] identity tree level when on click ? Dear all, it that any possible way to find our the node level on a cellpressed node in the tree controls? thx capho -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/