# Using Drawing API

**URL:** <https://forum.kirupa.com/t/using-drawing-api/291619>\
**Category:** flash\
**Created:** [July 2, 2009, 11:55am UTC](https://forum.kirupa.com/t/using-drawing-api/291619 "2009-07-02T11:55:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJR](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DJR](https://forum.kirupa.com/u/DJR)\
**Post date:** [July 2, 2009, 11:55am UTC](https://forum.kirupa.com/t/using-drawing-api/291619/1 "2009-07-02T11:55:11Z")

</div>

Hi,

Does anyone know how to replicate the “add anchor point” tool using AS2? I have managed to use the API to draw a square with four anchor points, but am not sure how to add extra anchor points. What I want is that these extra anchor points are added when then user clicks on a line.

Here is my example:

[www.davidjamesroberts.co.uk/work/drawingAPI.html](http://www.davidjamesroberts.co.uk/work/drawingAPI.html)

Thanks in advance
