title: Flash as3 mouse custom cursor nested in a movieclip
body: <p>I have a parent MC (container), with 3 nested MCs inside (mc1, mc2, mc3). The "container" MC is positioned somewhere on the stage (not necessarily at 0,0) and has the registration point in the top left corner. When I drag one of the nested MCs (which have the registration point in the middle), I want the target MC to follow the mouse anywhere on the stage. </p>
  
  <p>I want to do this without using startDrag() method. I know i have to set the coordinates of the target MC in the MOUSE_MOVE handler function based on the mouse position on the stage, something like...</p>
  
  <pre><code>container.mc1.addEventListener(MouseEvent.MOUSE_DOWN, drag);
  function drag(e:MouseEvent):void{
      stage.addEventListener(MouseEvent.MOSUE_MOVE, move);
  }
  function move(e:MouseEvent):void{
       container.mc1.x = ??
       container.mc2.y = ??
  }
  </code></pre>
  
  <p>How do I do that? I am very confused about the localToGlobal and globalToLocal methods.</p>
  
  <p><img src="https://i.stack.imgur.com/pgcJe.png" alt="see pic"></p>