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?