Показать сообщение отдельно
Старый 08.08.2005, 14:23
as_68 вне форума Посмотреть профиль Отправить личное сообщение для as_68 Найти все сообщения от as_68
  № 2  
Ответить с цитированием
as_68
 
Аватар для as_68

Регистрация: Apr 2002
Адрес: СПб
Сообщений: 288
Можно так:

Код:
stop;
for (var i in area) {
	area[i].onMouseMove = function() {
		if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
			this.createEmptyMovieClip("for_txt", this.getNextHighestDepth());
			this.for_txt.createTextField(["mcName"+i], 2, this._xmouse-5, this._ymouse-18, 1, 1);
			this.for_txt["mcName"+i].autoSize = true;
			this.for_txt["mcName"+i].background = true;
			this.for_txt["mcName"+i].backgroundColor = 0x000000;
			this.for_txt["mcName"+i].textColor = 0xFFFFFF;
			this.for_txt["mcName"+i].multiline = false;
			this.for_txt["mcName"+i].selectable = false;
			this.for_txt["mcName"+i].text = this._name;
			boldInfoAdres = new TextFormat();
			boldInfoAdres.bold = true;
			this.for_txt["mcName"+i].setTextFormat(boldInfoAdres);
		} else {
			this.for_txt.removeMovieClip();
		}
	};
	updateAfterEvent();
}