0 Replies Latest reply on Dec 7, 2007 1:56 AM by jeroencornelissen

    Duplicate tree items

    jeroencornelissen
      So I'm trying to duplicate the selected tree item and all of it's subfolders / items.

      I've tried something like this:

      var node:XML = XML(tree.selectedItem);
      tree.selectedItem.parent().appendChild(node);

      This actually duplicates the item but it makes a true copy of the item. So if you mouse-over the original item it highlights the new item. Or if I change the label on the new item it also changes the original item...

      Is there a way to do this properly?