Participant
November 4, 2009
Question
Cannot add items to HierarchicalCollectionView when parent is a leaf
- November 4, 2009
- 1 reply
- 1129 views
Hi,
I cannot use the addChild function on a hierarchicalCollectionView object, when the parent element is a leaf node.
When the selected node already has children, it works, but if the new node would be the first child, addChild returns false.
How can I add a new child to a leaf?
Attached you'll find a small example (rename .txt to .mxml then). Try to click on the button when "Part1_1" is selected in the tree. -> doesn't work. If any other nodes are selected, it works.
Thanks a lot for you help,
Bye,
Fritz
