This content has been marked as final. Show 4 replies
1) preprocess the dataProvider to remove the unwanted nodes. This is probably the easiest. Brain-dead easy if it is a single level XMLList. Recursive processing is harder.
2) Create a custom TreeItemDataDescriptor. I have not done this but you will find info in the docs.
Thank you but neither of those ways work. I do not want remove nodes from the XML the tree uses. I just want to have certain nodes not show up in the tree.
I can do this using filterFunction but filterFunction only works on the root level.
You did not look closely enough at TreeItemDataDescriptor.
And preprocessing the xml manually will work if you can't solve the filter issue. You can keep a copy or the unmodified xml if you need it.
When say TreeItemDataDescriptor you mean ITreeDataDescriptor right?
There is no TreeItemDataDescriptor class or interface that I can find in ActionScript 3.
Back to the original problem, have can you do this with a custom ITreeDataDescriptor? I wrote my own and was successful as modifying the XML but I had the same problem the only way I could get a tree node not to show up in the tree was delete the XML node and that is not what I want.