lineTo problem

I am trying to draw a line using the lineTo method but according to the flash coordenates reference the lines are shorter than they have to be.
So, i need some help. How can i use this method in the right way?