Показать сообщение отдельно
Старый 12.07.2006, 15:25
__i вне форума Посмотреть профиль Отправить личное сообщение для __i Найти все сообщения от __i
  № 10  
Ответить с цитированием
__i
 
Аватар для __i

Регистрация: Jan 2004
Адрес: Украина, Харьков
Сообщений: 1,524
Отправить сообщение для __i с помощью ICQ
Код:
mc.onPress = function(){
	this.onMouseMove = function(){
		trace(this._x+' '+ this._y);
		}
	this.startDrag();
}
mc.onRelease = function(){
	delete this.onMouseMove;
	this.stopDrag();
}
//////////
mc1.onPress = function(){
	this.x = this._xmouse;
	this.y = this._ymouse;
	this.onMouseMove = function(){
		this._x = _root._xmouse - this.x
		this._y = _root._ymouse - this.y
		trace(this._x+' '+ this._y);
		}
}
mc1.onRelease = function(){
	delete this.onMouseMove;
}
при МаусМуве не всегда целые координты, при Драге всегда!