Показать сообщение отдельно
Старый 12.08.2005, 17:26
KidsKilla вне форума Посмотреть профиль Отправить личное сообщение для KidsKilla Посетить домашнюю страницу KidsKilla Найти все сообщения от KidsKilla
  № 7  
Ответить с цитированием
KidsKilla
.grin! wuz here
 
Аватар для KidsKilla

Регистрация: Aug 2004
Адрес: paradise city
Сообщений: 3,981
Отправить сообщение для KidsKilla с помощью ICQ
Код:
speed = 3;
_m = _root.createEmptyMovieClip ("pnt", 2);
_m._x = 200;
_m._y = 200;
_m.attachMovie ("pnt", "pnt", 200);
someListener = new Object ();
someListener.onMouseDown = function () {
	_m.endx = _xmouse;
	_m.endy = _ymouse;
	_m.onEnterFrame = _m.enterFrame;
};
Mouse.addListener (someListener);
_m.enterFrame = function () {
	this.cx++;
	if (Math.abs(this._x-this.endx)<1&&Math.abs(this._y-this.endy)<1) {
		this._x = this.endx;
		this._y = this.endy;
		delete this.onEnterFrame;
	}
	this._x += (this.endx-this._x)/speed;
	this._y += (this.endy-this._y)/speed;
};
оно?
__________________
Breakcore them all!