Adobe Flex Actionscript Question:

myTree appears just fine but why ca not I access the node attributes?

Answer:

Select a node in your myTree. In ActionScript, you can reference this node by using the following code: myTree.selectedNode;
To access the attributes of the node, use the tree DataProvider API. These methods will work for any format dataProvider item, which might be an object, array, or XML node.
The following example might work: myTree.selectedNode.attributes.myAttribute
But the following example is far more reliable:
myTree.selectedNode.getProperty("myAttribute");

Download Adobe Flex Actionscript PDF Read All 84 Adobe Flex Actionscript Questions
Previous QuestionNext Question
When I add or modify an item in my dataProvider, why does not it show up in my DataGrid?How do I pass parameters to a pop-up window in actionscript?