It works, much thanks for your help BUT, I saw many examples using my first syntax, I have Flex 1.5, what did I miss ?
--- In flexcoders@yahoogroups.com, "dustin_speer" <[EMAIL PROTECTED]> wrote: > > Try tree.selectedItem.attributes.id or > tree.selectedItem.attributes.data or > tree.selectedItem.attributes.label. > > --- In flexcoders@yahoogroups.com, "jivankohinoor" <[EMAIL PROTECTED]> > wrote: > > > > I have a strange problem with the tree component. > > I fill the tree with live http XML, it works fine, I am even able to > > modify item icons. > > BUT, I cannot retrieve the selected object, when I dump the > property : > > tree.selectedItem into a TextArea field, I get the XML code for > this > > node : > > <object id="60" label="Anomalies-New" icon="icon1" /> > > And, if I try to retrieve a property : tree.selectedItem.id, the > > result is "undefined" > > I have the same problem whatever the resultType of the httpService > is, > > xml or object. > > BUT, with object, I also get an extra root node, and my icons are no > > more displayed > > I also tried to load an XML URL directly, instead of getting it > from a > > servlet, it never works. > > > > How does Flex manage equivalence XML/objects ? I thought that XML > data > > was converted to AS objects, or am I wrong ? > > Thanks for helping