
07.11.2005, 23:32
|
|
|
Негуру
администратор
Регистрация: Jan 2000
Адрес: Кёнигсберг in Moscow
Сообщений: 21,884
|
Cорри, не внимательно прочитал.
Замени
mc.mouseMove = function () {
var x = Math.floor (_root._xmouse / 40) * 40;
var y = Math.floor (_root._ymouse / 40) * 40;
x = x < 0 ? 0 : x > 360 ? 360 : x;
y = y < 0 ? 0 : y > 360 ? 360 : y;
this._x = x;
this._y = y;
};
на
mc.mouseMove = function () {
var xGrid = Math.round (_root._xmouse / 40) * 40;
var yGrid = Math.round (_root._ymouse / 40) * 40;
x = _root._xmouse < xGrid ? xGrid - this._width : xGrid;
y = _root._ymouse < yGrid ? yGrid - this._height : yGrid;
x = x < 0 ? 0 : x > 360 ? 400 - this._width : x;
y = y < 0 ? 0 : y > 360 ? 400 - this._height : y;
this._x = x;
this._y = y;
};
|