Your example is working as expected. The
reason you get no output is because the xml node you select has no subelements
there for the trace is empty. Trace the label property and you will see you are
indeed accessing the xml correctly. Change your test xml to something glike
this <mx:XML format="e4x"
id="myXML" > <category
label="Element 1" > <section
label="hello"/> </category> <category
label="Element 2" /> </mx:XML> And your dataprovider to dataProvider="{myXML}" Add the following to your showNode Method private function showNode() { trace("node
= " + myTree.selectedItem); trace("attribute
= " + [EMAIL PROTECTED]); } -- Emile Swain Senior Creative Developer Direct: 020 7087 2754 From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brendan Meutzner Hi,
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] 2.0 Beta Tree.selectedNode Emile Swain
- Re: [flexcoders] 2.0 Beta Tree.selectedNode Anatole Tartakovsky
- [flexcoders] Re: 2.0 Beta Tree.selectedNode Brendan Meutzner
- RE: [flexcoders] 2.0 Beta Tree.selectedNode Emile Swain
- [flexcoders] CF connectivity? Stacey Mulcahy
- Re: [flexcoders] 2.0 Beta Tree.selectedNode Anatole Tartakovsky