title: Creating a polygon in ActionScript 3 from a set of coordinate pairs
body: <p>I'm making an app in Flash, and I want to define some polygons which I can bind hover events to to add annotations to an image.
  I can create these normally in Flash, but I want to load some external data, a list of coordinates, and create the polygons with ActionScript.</p>
  
  <p>Obviously they're just hotspots, so I want them to be invisible, but searching for my problem only shows results for drawing polygons from coordinates using the <code>graphics</code> property of a <code>movieclip</code>.</p>
  
  <p>The data doesn't ever change, so it would be possible to just draw all the polygons manually with the pen tool, but the data is being used elsewhere, so it would be much easier to maintain if I could add new zones just by updating the text file.</p>