If you make a Tree, and you set it's data to an XML object:
var tree:Tree = new Tree();
tree.showRoot=false;
tree.labelField=@label;
var xml:XML = node
node label=Something
node label=child one/
node label=another child/
/node
/node;
tree.dataProvider =xml;
How do you programmatically open
I've used this code to open and select arbitrary nodes in the V2 tree
component. Might be portable to Flex, or not.
private function displayAndOpenNode(component:Tree, label:String,
node:XMLNode)
{
if(node == undefined)
{
2 matches
Mail list logo