问题
I'm trying to get properties for one single node such as the name I've set for it or something. How can I go by just selecting this one node? I can do it with an event
e.currentTarget.selectedItem.@name;
But I need to grab it without the event, how can I go by doing this?
回答1:
it's better to get data from your data provider for xmlTree, because it's a XML/XMLList you can always use construction like
myxml.nodename[0].@attribute
来源:https://stackoverflow.com/questions/4796462/how-do-i-select-a-certain-node-in-a-tree-in-flex