I have a tree, onDrag of a branch (having leaf nodes) to the
i have the following code.
private function addNewNode(event:DragEvent,
var dropTarget:Tree = Tree(event.currentTarget);
var treeNode:ICollectionView = dropTarget.dataProvider as
var treeCursor:IViewCursor = treeNode.createCursor();
var treeNode1:XML = treeCursor.current as XML;
var pXMLList:XMLList = new XMLList(treeNode1).children();
pXMLList[pXMLList.length()] = newNode;
trace("after adding new node: " + treeNode1); // this prints
But the modified tree at the drop location after adding a new
branch is not getting reflected.
I am really stuck at this point. Not sure how to proceed.