Drawing question

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);     

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?