# LEarning API

**URL:** https://forum.kirupa.com/t/learning-api/163402
**Category:** flash
**Created:** [September 22, 2005, 3:47am UTC](https://forum.kirupa.com/t/learning-api/163402 "2005-09-22T03:47:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![CayoHueso](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@CayoHueso](https://forum.kirupa.com/u/CayoHueso)
#### Post date: [September 22, 2005, 3:47am UTC](https://forum.kirupa.com/t/learning-api/163402/1 "2005-09-22T03:47:56Z")

</div>

Hi everybody,

I am learning how to use the Drawing API, and I created a file with two mc in the stage. I create the code to draw a line from the first mc.\_x to the second mc.\_x. For some reason, the final coordinate does not work, and the line is drawn beyond the second mc.\_x.

Here is the [FLA](http://www.dyangochavez.com/downloads/problem.fla)

Could anyone please tell me what I am doing wrong?  
Thanks a lot
