import flash.geom.Point; var unitVec:Point = new Point( statPoint.x - mouseX, statPoint.y - mouseY ); unitVec.normalize();