mc.goToPoint(Number(nomecampo.text),Number(nomecam po2.text))

Così dovrebbe andare