--- In flexcoders@yahoogroups.com, Adrian Williams <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a challenge.... > > I am using an ADG in tree mode on a flat array. Everything looks > great. One of the requirements is that whenever a user wants to > rearrange the order of the rows under a node, I have to store that index > value (display order). I.E. The 1st node of the ADG is collapsed. The > 2nd node is expanded. The 5th row in the 2nd node gets dragged and > dropped to the 3rd row of the same node. The 3rd row then becomes the > 4th and the 4th then becomes the 5th. The actual drag and drop functions > work beautifully. The problem comes into play when I try to identify > the begin index and the end index for the row that was manipulated. > > When I use: > > var beginIndex:int = event.currentTarget.selectedIndex;
selectedItem.childIndex(); HTH; Amy