var stepGrid:Number = 10; // Шаг сетки в пикселях mc._x = Math.round(mc.x / stepGrid) * stepGrid; mc._y = Math.round(mc.y / stepGrid) * stepGrid;