title: KineticJS drag an object on one stage result in moving an object on another stages
body: <p>I have two stages on my page; I would like to move a line on the second stage when I drag a line of the first stage by the same values.  Here is my script:</p>
  
  <pre><code> &lt;script src="../../Scripts/KineticJS.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;div id="container1" style="width: 512px; height: 512px;"&gt;
      &lt;/div&gt;
      &lt;div id="container2" style="width: 512px; height: 512px;"&gt;
      &lt;/div&gt;
      &lt;script type="text/javascript"&gt;
          var stage2 = new Kinetic.Stage({
              container: 'container2',
              width: 512,
              height: 512
          });
          var Greenlinelayer2 = new Kinetic.Layer();
          var GreenLine2 = new Kinetic.Line({
              points: [0, 256, 512, 256],
              stroke: '#00ff00',
              strokeWidth: 2,
              lineCap: 'round',
              lineJoin: 'round',
              draggable: true,
              dragBoundFunc: function (pos) {
              if (GreenLine1) {
              GreenLine1.points = [0, 256 + pos.y, 512, 256 + pos.y];
              }
              return {
                  x: this.getAbsolutePosition().x,
                  y: pos.y
              }
          }
          });
          Greenlinelayer2.add(GreenLine2);
          Greenlinelayer2.draw();
          stage2.add(Greenlinelayer2);
          var stage1 = new Kinetic.Stage({
              container: 'container1',
              width: 512,
              height: 512
          });
          var Greenlinelayer1 = new Kinetic.Layer();
          GreenLine1 = new Kinetic.Line({
          points: [0, 256, 512, 256],
          stroke: '#00ff00',
          strokeWidth: 2,
          lineCap: 'round',
          lineJoin: 'round',
          draggable: true,
          dragBoundFunc: function (pos) {
              return {
                  x: this.getAbsolutePosition().x,
                  y: pos.y
              }
          }
          });
          Greenlinelayer1.add(GreenLine1);
          Greenlinelayer1.draw();
          stage1.add(Greenlinelayer1);
      &lt;/script&gt;
  </code></pre>
  
  <p>I would appreciate your suggestions, thanks in advance.</p>