# Drawing question

**URL:** https://forum.kirupa.com/t/drawing-question/152341
**Category:** Uncategorized
**Created:** [June 24, 2005, 4:01am UTC](https://forum.kirupa.com/t/drawing-question/152341 "2005-06-24T04:01:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fortin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fortin/32/1435_2.png) [@fortin](https://forum.kirupa.com/u/fortin)
#### Post date: [June 24, 2005, 4:01am UTC](https://forum.kirupa.com/t/drawing-question/152341/1 "2005-06-24T04:01:59Z")

</div>

I have 2 balls, which i connect with a drawn line using the following code.

```
newName = eval("ball"+this.currentStep);
newName2 = eval("ball"+(this.currentStep-1))
trace("newname2 ="+newName2);     
newName.lineStyle(2,0x000000,100);
newName.moveTo(this._x,this._y);     
newName.lineTo(newName2._x,newName2._y);     

```

This code works great except the line I draw has the wrong x coordinates…The line is drawn to the correst y value but the X is at least 300px off? Any ideas why this is happening? Does it have to do with my anchor point or reg point?
