Показать сообщение отдельно
Старый 24.01.2006, 16:06
Nox Noctis вне форума Посмотреть профиль Отправить личное сообщение для Nox Noctis Посетить домашнюю страницу Nox Noctis Найти все сообщения от Nox Noctis
  № 14  
Ответить с цитированием
Nox Noctis
don't panic!
 
Аватар для Nox Noctis

Регистрация: Aug 2001
Сообщений: 4,121
Цитата:
Сообщение от veterok4
Господа! да помогите же! Подскажите как сделать чтоб
Код:
_root['myClip'+dd].lineStyle(tip.text, nSomeNumber, alfa.text); //стиль линии
понимал цвет (например 0055FF), который находится в переменной
Код:
this.createTextField("tip", 1, 0, 0, 50, 20);
tip.type="input", tip.border=true;
tip.restrict="0123456789", tip.maxChars=3;
tip.text = 100;
//
this.createTextField("color", 2, 0, 22, 50, 20);
color.type="input", color.border=true;
color.restrict="0123456789ABCDEFabcdef", color.maxChars=6;
color.text = "FF0000";
//
this.createTextField("alpha", 3, 0, 44, 50, 20);
alpha.type="input", alpha.border=true;
alpha.restrict="0123456789", alpha.maxChars=3;
alpha.text = "100";
//
tip.onChanged = color.onChanged=alpha.onChanged=redraw;
//
function redraw()
{
	var w, c, a;
	with (_root) {
		w = Number(tip.text);
		c = parseInt(color.text, 16);
		a = Number(alpha.text);
		clip.clear();
		clip.lineStyle(w, c, a);
		clip.lineTo(0, .15);
	}
}
//
this.createEmptyMovieClip("clip", 0);
clip._x=150, clip._y=50;
//
redraw();
сорри, запостил до того, как увидел псоледний пост.