PolygonLassoTool in As3

Polygon Lasso Tool in as3 but midPoint curves are not working properly