1 Reply Latest reply on Mar 2, 2010 5:34 PM by Flex harUI

    Swap Items in a Tree Control

    SIEKAR

      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.