RE: [flexcoders] detect XML node on click in Tree

2007-02-07 Thread Cashorali, Tanya M.
Thank you! Worked like a charm. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, February 06, 2007 1:57 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] detect XML node on click in Tree

RE: [flexcoders] detect XML node on click in Tree

2007-02-06 Thread Tracy Spratt
selectedItem gives you a reference to the node. Probably what you are seeing is because the event is just an Object containing the xml, so some propeties are not visible. Cast/convert the result into an xml object: var oItem:Object = event.currentTarget.selectedItem; var xmlItem:XML = XML(oI