![]() |
|
||||||||||
|
|||||
|
Ребят, оч нада.
как установить выравнивание п текстовом поле програмно? У меня получилось установить выравнивание к левому краю, к правому, а по центру не можу , а нада... оч нада.Выручте, плиз.
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
"человек"
Регистрация: Nov 2002
Адрес: +-
Сообщений: 1,807
|
Доступность
Flash Player 6. Синтаксис TextFormat.align Описание Свойство; строка, отображающая выравнивание абзаца. Если "left", выравнивается по левому краю. Если "center", то по центру. Если "right", выравнивается по правому краю. По умолчанию null, что говорит о том, что свойство не определено.
__________________
flash it |
|
|||||
|
попробуй по приколу написать myTextFormat.align="center"
![]() у меня лично нифига не пашет ![]() сенкс за помощ эни вэй ![]()
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
"человек"
Регистрация: Nov 2002
Адрес: +-
Сообщений: 1,807
|
вот прикол
![]()
__________________
flash it |
|
|||||
|
А.У. мы ищем таланты
![]()
__________________
I'm only happy when it rains. Waka Laka |
|
|||||
|
Регистрация: Dec 2001
Адрес: n/a
Сообщений: 1,386
|
Пушистик молодец
![]()
__________________
Однажды, я захотел понюхать кока-колу, но кубики льда, застряли у меня в носу! Последний раз редактировалось DUDE; 06.07.2003 в 16:33. |
|
|||||
|
Bumble Bee
[+1 05.07.06]
|
_root.createTextField("percent", 1, Stage.width/2-25, Stage.height/2-10, 50, 20);
_root.percent.border = 1; _root.percent.selectable = 0; _root.percent.text = "YO!"; myformat = new TextFormat(); myformat.align = "center"; _root.percent.setTextFormat(myformat);
__________________
Portfolio |
|
|||||
|
_root.OSdesktop.Items["item"+i].createTextField("DescriptionText",4,0,Number(_root.OSvariables.DesktopItemSize),Number(_root.OSvariables.DesktopItemSize)*2,Number(_root.OSvariables. DesktopItemSize)/2);
_root.OSdesktop.Items["item"+i].DescriptionText.type = "dynamic"; _root.OSdesktop.Items["item"+i].DescriptionText.selectable = false _root.OSdesktop.Items["item"+i].DescriptionText.border=1 _root.OSdesktop.Items["item"+i].DescriptionText.textColor = Number(_root.OSvariables.DescriptionTextColour); _root.OSdesktop.Items["item"+i].DescriptionText.text = _root.OSvariables["DesktopItem"+i+"Name"] _root.OSdesktop.Items["item"+i].DescriptionTextFormat = new TextFormat(); _root.OSdesktop.Items["item"+i].DescriptionTextFormat.font = _root.OSvariables.DescriptionTextFont; _root.OSdesktop.Items["item"+i].DescriptionTextFormat.size = Number(_root.OSvariables.DesktopItemSize)/4*1.1; _root.OSdesktop.Items["item"+i].DescriptionTextFormat.bold = Boolean(_root.OSvariables.DescriptionTextBold) _root.OSdesktop.Items["item"+i].DescriptionTextFormat.italic = Boolean(_root.OSvariables.DescriptionTextItalic) _root.OSdesktop.Items["item"+i].DescriptionTextFormat.align = "center"; _root.OSdesktop.Items["item"+i].DescriptionText.setNewTextFormat(_root.OSdesktop.Items["item"+i].DescriptionTextFormat); // А где сдесь ошибка? ![]() //________________________________________________
__________________
I'm only happy when it rains. Waka Laka Последний раз редактировалось Usnul; 06.07.2003 в 23:49. |
|
|||||
|
Bumble Bee
[+1 05.07.06]
|
проверить не могу...но попробуй:
_root.OSdesktop.Items["item"+i].createTextField("DescriptionText", 4, 0, Number(_root.OSvariables.DesktopItemSize), Number(_root.OSvariables.DesktopItemSize)*2, Number(_root.OSvariables.DesktopItemSize)/2); _root.OSdesktop.Items["item"+i].DescriptionText.type = "dynamic"; _root.OSdesktop.Items["item"+i].DescriptionText.selectable = false; _root.OSdesktop.Items["item"+i].DescriptionText.border = 1; _root.OSdesktop.Items["item"+i].DescriptionText.textColor = Number(_root.OSvariables.DescriptionTextColour); _root.OSdesktop.Items["item"+i].DescriptionText.text = _root.OSvariables["DesktopItem"+i+"Name"]; descriptionTextFormat = new TextFormat(); descriptionTextFormat.font = _root.OSvariables.DescriptionTextFont; descriptionTextFormat.size = Number(_root.OSvariables.DesktopItemSize)/4*1.1; descriptionTextFormat.bold = Boolean(_root.OSvariables.DescriptionTextBold); descriptionTextFormat.italic = Boolean(_root.OSvariables.DescriptionTextItalic); descriptionTextFormat.align = "center"; _root.OSdesktop.Items["item"+i].DescriptionText.setTextFormat(descriptionTextFormat);
__________________
Portfolio |
![]() |
Часовой пояс GMT +4, время: 15:45. |
|
|
« Предыдущая тема | Следующая тема » |
|
|