title: how to move polygon points depending on movement of one point?
body: <p>i have polygon say (Hexagonal with 6 lines) this Hexagonal connected from center with 6 point That make 6 triangles
  I need when move any point(cause to move triangles) ,, other points move like this point i mean if the left point move to lift other points move to the left and so on</p>
  
  <p>the code I want like this ptcP1.x and ptcP1.y the point that i moving it other point move depend on ptcP1 movement note that, this equations work fine in square shape ,, put in Penta and hexa ..etc this equations in valid so can any one help me</p>
  
  <pre><code>function button1_triggeredHandler( event:Event ):void
  {
  
      mode="mode2";
      //trace(list.selectedIndex);
  
      if(list.selectedIndex==1)
      {
      DrawSqure.ptcP1.x = Math.random() + 50; 
      DrawSqure.ptcP1.y = Math.random() + 50;
  
  
      DrawSqure.ptcP2.y = 50-DrawSqure.ptcP1.x; 
      DrawSqure.ptcP2.x = DrawSqure.ptcP1.y;
  
      DrawSqure.ptcP3.x = 50-DrawSqure.ptcP1.y;
      DrawSqure.ptcP3.y = DrawSqure.ptcP1.x;
  
  
      DrawSqure.ptcP4.x = 50-DrawSqure.ptcP1.x; 
      DrawSqure.ptcP4.y = 50-DrawSqure.ptcP1.y;
  }
  </code></pre>