Показать сообщение отдельно
Старый 11.03.2004, 03:58
sergwizard вне форума Посмотреть профиль Отправить личное сообщение для sergwizard Посетить домашнюю страницу sergwizard Найти все сообщения от sergwizard
  № 7  
Ответить с цитированием
sergwizard
 
Аватар для sergwizard

Регистрация: Jan 2002
Адрес: СПб-Denver-Лермонтов
Сообщений: 1,525
Попробуй такое:

Код:
this.createEmptyMovieClip("hover",10);
hover.createEmptyMovieClip("shad",0);
with(hover.shad){
	moveTo(2,2);
	lineStyle(0);
	beginFill(0x000000,70);
	lineTo(122,2);
	lineTo(122,22);
	lineTo(2,22);
	lineTo(2,2);
	endFill();
}
hover.createTextField("tf", 1, 0,0,120, 20);
hover.tf.type = "dynamic";
hover.tf.variable = "tip";
hover.tf.textColor = 0x000000;
hover.tf.background = true;
hover.tf.backgroundColor = 0xF0F066;
hover.tf.selectable = false;
tform = new TextFormat();
tform.font = "Arial cyr";
tform.size = 12;
tform.align = "center";
hover.tf.setNewTextFormat(tform);
hover.tip = "";
hover._visible = 0;
this.onMouseMove = function(){
	if(hovered){
	hover._visible = true;
	hover._x = _xmouse;
	hover._y = _ymouse-30;
	hover.tip = mess;
	}else{hover._visible = false;}
}
////========================
myFormat = new TextFormat();
myFormat.align = "center";
myFormat.font = "Verdana";
myFormat.size = 14;
myFormat.color = "0x0000FF"
myFormat.underline = 0;
//===============
newFormat = new TextFormat();
newFormat.underline = 1;
newFormat.color = "0xFF0000";
//=================
this.createTextField("txt", 0,0,0,0,0);
txt.autoSize = true;
txt.selectable = 0;
txt.text = "This is the best";
txt.setTextFormat(myFormat);
this.createEmptyMovieClip("but",2);
but.createTextField("txt1", 0,0,0,0,0);
but.txt1.autoSize = true;
but.txt1.selectable = 0;
but.txt1.text = "site";
but.txt1.setTextFormat(myFormat);
this.createTextField("txt2", 4,0,0,0,0);
txt2.autoSize = true;
txt2.selectable = 0;
txt2.text = "for the flashers";
txt2.setTextFormat(myFormat);
//===========
this.onEnterFrame = function(){
txt._x = 145;
txt._y = 100;
but.txt1._x = 145+txt._width;
but.txt1._y =100;
txt2._x = 145+txt._width+but.txt1._width;
txt2._y = 100;
this.onEnterFrame = null;
}

but.onRollOver = function(){
	_root.hovered = true
	mess = "flasher.ru";
	but.txt1.setTextFormat(newFormat);
}
but.onRollOut = function(){
	but.txt1.setTextFormat(myFormat);
	_root.hovered = false;
}
but.onRelease = function(){
	getURL("http://flasher.ru");
}
__________________
Для того чтобы узнавать, есть два способа: - задавать вопросы и пытаться самому на них ответить. Второй способ более продуктивный.
(S.Wizard)


Последний раз редактировалось sergwizard; 11.03.2004 в 03:59.