Показать сообщение отдельно
Старый 13.07.2009, 20:13
flashuser007 вне форума Посмотреть профиль Отправить личное сообщение для flashuser007 Найти все сообщения от flashuser007
  № 5  
Ответить с цитированием
flashuser007

Регистрация: Jul 2009
Сообщений: 3
Код AS1/AS2:
mc.onMouseMove = function() {
	x = this._x-_xmouse;
	y = this._y-_ymouse;
	dist1 = Math.sqrt((x*x+y*y));
	if (dist1<dist) {
		this._xscale += 1;
		this._yscale += 1;
	} else if (dist1>dist) {
		this._xscale -= 1;
		this._yscale -= 1;
	}
	dist = dist1;
};