2 Replies Latest reply on Oct 25, 2006 3:10 PM by Nataliefay

    Tree Drag and Drop


      I have two trees, Tree1 and Tree2. I want to copy a node from Tree1 to a specific node in Tree2. I have set up the following dragDrop event handler:

      private function doDragDrop(event:DragEvent):void {
      var dropTarget:Tree = Tree(event.currentTarget);
      var nodesToCopy:Array = event.dragSource.dataForFormat("treeItems") as Array;

      nodesToCopy gives me the data from Tree1 that I am copying and dropTarget gives me Tree2. But how do I know where in the XML data backing Tree2 to insert the data from Tree1? This works out of the box without any event handling when you want to move data from tree to tree, but the documentation says you have to write your own event handlers for coypying. Is it even possible to implement something for this scenario?

        • 1. Re: Tree Drag and Drop
          djhall77 Level 1
          Is there a way for me to know what node in the tree I am dragging over from the dragOver event?
          • 2. Re: Tree Drag and Drop
            Nataliefay Level 1

            I'm sorry to bug you with a non-technical discussion, but I am a recruiter in San Diego. My client is in need of 3 Senior Flex Developers for their project. I have had an extremely rough time finding someone for this position. Would you be interested in this position, or do you know of anyone that might be? We do pay referral fees. This position may be open to telecommuting.

            Job Description:
            They are in the midst of a major re-architecting of their Corporate Management system utilizing many cutting edge technologies. As it relates to the position they are using Flex as their UI.

            This is either a contract, or a full-time position.

            Pay: Market Rate

            Thanks for your help!

            Natalie Fay
            Outsource Technical