title: draw lines between 2 points with AS3 code
body: <p>I'd like to join multiple points with a line by clicking on them with AS3 code. Each time you click on a button it creates a line with a number. </p>
  
  <p>I've created an animation in order to explain what I'd like to do. 
  Here : <strong><a href="https://sendvid.com/j1pjbhwj" rel="nofollow noreferrer">Video link</a></strong></p>
  
  <p><img src="https://i.stack.imgur.com/Sra5d.gif" width="420" height="333" /></p>
  
  <p>What's your advice on the matter ? </p>
  
  <p>I don't know the best method to do that. <code>graphics.lineStyle</code> ?</p>
  
  <p>And which method can I use to count the number (first line created = 1, second line = 2 ..etc) </p>