Показать сообщение отдельно
Старый 01.08.2006, 18:07
MINASTIS вне форума Посмотреть профиль Отправить личное сообщение для MINASTIS Посетить домашнюю страницу MINASTIS Найти все сообщения от MINASTIS
  № 5  
Ответить с цитированием
MINASTIS
 
Аватар для MINASTIS

Регистрация: Jan 2006
Адрес: Сургут
Сообщений: 897
Отправить сообщение для MINASTIS с помощью Skype™
В кадре прописываете
Код:
function helpon(t) {
	createEmptyMovieClip("helper", 1);
	helper.createTextField("word", 2, 0, 0, 1, 1);
	helper.word.type = "dynamic";
	helper.word.autoSize = true;
	helper.word.selectable = false;
	helper.hp = new TextFormat();
	helper.hp.font = "_typewriter";
	helper.hp.color = 0xCCCCCC;
	helper.word.setNewTextFormat(helper.hp);
	helper.word.text = t;
	helper.thisx = Math.round(helper.word._width/2);
	helper.thisy = Math.round(helper.word._height/2);
	helper.createEmptyMovieClip("fon", 1);
	helper.fon.beginFill(0x3D405C);
	helper.fon.moveTo("-"+helper.thisx, "-"+helper.thisy);
	helper.fon.lineTo(helper.thisx, "-"+helper.thisy);
	helper.fon.lineTo(helper.thisx, helper.thisy);
	helper.fon.lineTo("-"+helper.thisx, helper.thisy);
	helper.fon.lineTo("-"+helper.thisx, "-"+helper.thisy);
	helper.fon.endFill();
	helper.fon._x += helper.thisx;
	helper.fon._y += helper.thisy;
	helper._x = _xmouse+10;
	helper._y = _ymouse+10;
	helper.startDrag(false);
	helper._alpha = 0;
	helper.onEnterFrame = function() {
		if (this._alpha<100) {
			this._alpha += 20;
		} else {
			delete this.onEnterFrame;
		}
	};
}
function helpoff () {
	helper.stopDrag();
	helper.onEnterFrame = function () {
		if (this._alpha>0) this._alpha -= 10;
	else removeMovieClip(helper);
	}
}
В кнопке прописываете
Код:
on (rollOver) {
helpon("Текст подсказки");	
}
on (rollOut) {
helpoff();	
}
Можно менять шрифт цвет. Размер квадрата подсказки зависит от длинны текста.