Questo è un esempio per un moto rettilineo uniforme da un punto di partenza Px, Py a un punto di arrivo Ax, Ay in N passi:
codice:
onClipEvent (load)
{
	Px = 130;
	Py = 30;
	Ax = 10;
	Ay = 100;
	N  = 10;
	
	this._x = Px;
	this._y = Py;
	
	tgx = Ax-Px;
	tgy = Ay-Py;
	i = 0;
}

onClipEvent (enterFrame)
{	
	if (i != N)
	{
		xp = this._x;
		yp = this._y;
		this._x = xp + tgx/N;
		this._y = yp + tgy/N;
		i++;
	}
}
Potrebbero esserci degli errori dovuti alla "fretta". Provalo.