I am trying to use a Tree control for listing some items and also using two buttons on the side to build a Tree Panel MXML component that can move elements around in the tree. The objective is when a user clicks on an item and clicks the up Arrow then it should swap the element with immedite element in the top hence bubbling the selected item to the required position. The dataprovider to a Tree is a list and currently I am have trouble with the setItemAt() which would not point to the right index. Any ideas how to fix the issue. Please help.
Each level is its own collection. You can get to them from the