Показать сообщение отдельно
Старый 12.09.2006, 15:29
DarkChris вне форума Посмотреть профиль Отправить личное сообщение для DarkChris Найти все сообщения от DarkChris
  № 2  
Ответить с цитированием
DarkChris

Регистрация: Jun 2004
Адрес: Одесса
Сообщений: 93
Отправить сообщение для DarkChris с помощью ICQ
Код:
on (press) {
    this.startDrag(true, 0, 0, -500, 500);
    this.onMouseMove = function() {
           Procent = Math.abs(this._x*100/_parent.Picture._width);
			trace(Procent+"<<< "+this._x);
			_parent.Picture._xscale = Procent;
			_parent.Picture._yscale = Procent;
			this._parent.Width = _parent.Picture._width;
			this._parent.Height = _parent.Picture._height;
			_parent.ScaleButtons();
	};
}
on (release, releaseOutside) {
	this.stopDrag();
	delete this.onMouseMove;
}