This content has been marked as final. Show 5 replies
doesnt .setIsOpen() method help?
Thanks.setIsOpen() does open the nodes.But I have a little complex task on hand.I will tell you what it is.
I Have a course which is having index search , book mark etc.The tree structure is my main navigation though. If the user uses the index search to go to a particular topic...the tree should reflect it. Meaning u may have to open a few nodes to get to the content.Some 3 levels inside. I am trying with setIsOpen()..But failed till now to get to the chiled nodes. What I am trying is to search the full tree data , find the correct node . then find the index of that node...then open it .Is that the best way or is there any short arm jab ...?
Like to hear from you, I am working in a company where you were once...
here is the complete code to do what you want: Please follow the instructions i've put in the comments on top:
forgot to mention, have a button on stage with instance name _btn as well.
once the XML loads, click the button to have the node open.
Basically you will have to traverse thru the tree to find each node's parent and open that as well.
Hope it helps.
Thanks for that code. I am able to open the nodes.But my worry is the module structure; It is something like this;
<node label="126.96.36.199" />
And i have to make 188.8.131.52 as the selected index!. There are lots of main nodes present too. But I succeeded till there.Thanks.
Now I have another issue; the scroll bar in the tree is not changing if I edit the scroll bar assets.Why? is it built in the tree?.
Please tell me.