You are right, Kenneth. My XML has no second child node, so when I tried:
myTree.setIsOpen(myTree.getTreeNodeAt(0),true, true);
I does work.
Thank you so much, Kenneth.
I want to open a node of a tree component when it is loading. But when I used setIsOpen(), it doesn't work. My script is as follows:
var myTree:mx.controls.Tree;
var myTreeDP:XML = new XML();
myTreeDP.ignoreWhite = true;
myTreeDP.load("test.xml");
myTreeDP.onLoad = function(success:Boolean) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.