всем привет.
если рисовать с нулевой точки(x=0,y=0) все очень легко,
запускаю таймер и все работает :

Код AS3:
private function drawLine (e:TimerEvent)
{
this.graphics.clear ();
this.graphics.lineStyle (1,0x000000,1);
this.graphics.moveTo (0,0);
this.graphics.lineTo (100/99*timer.currentCount,100/99*timer.currentCount);
}
а что делать если
начальная точка больше финальной :

Код AS3:
//x start =100 x final = -10
//y start =100 y final = -10
private function drawLine (e:TimerEvent)
{
this.graphics.clear ();
this.graphics.lineStyle (1,0x000000,1);
this.graphics.moveTo (100,100);
this.graphics.lineTo (-10/99*timer.currentCount,-10/99*timer.currentCount);
}