![]() |
|
||||||||||
|
|||||
|
Есть такой код:
System.useCodepage = true;
var myStyle:TextField.StyleSheet = new TextField.StyleSheet();
myStyle.load("styles/myFlash1.css");
content_txt.styleSheet = myStyle;
content_txt.multiline= true;
content_txt.wordWrap = true;
content_txt.html = true;
content_txt.background = true;
content_txt.backgroundColor = 0xf2f2f2;
content_txt.embedFonts = false;
content_txt.selectable = false;
var story:XML = new XML();
story.ignoreWhite = true;
story.load("data/myFlash1.html");
story.onLoad = function () {
content_txt.htmlText = story;
}
Но, свойство leading, не работает! Подскажите, плз! Последний раз редактировалось iNils; 12.09.2006 в 12:19. |
|
|||||
|
Регистрация: Jun 2005
Адрес: Moscow - immigrate from Volgodonsk
Сообщений: 2,534
|
значит такого свойства нету ))
не уверен но мне кажется что это из за css или еще чего, что то много у тебя там всего ) Последний раз редактировалось motor4ik; 12.09.2006 в 10:53. |
|
|||||
|
Регистрация: Sep 2006
Сообщений: 27
|
http://flasher.ru/forum/showthread.p...hlight=leading
http://flasher.ru/forum/showthread.p...hlight=leading а вообще поиск ... http://flasher.ru/forum/search.php?searchid=407317 |
|
|||||
|
Регистрация: Sep 2006
Сообщений: 27
|
Цитата:
>>The following HTML attributes are supported in text fields: >>leftmargin, rightmargin, align, indent, and leading. |
|
|||||
|
2 PuPS_2:
попробуйте написать var tfFormatter:TextFormat = new TextFormat(); tfFormatter.leading =5; content_txt.setNewTextFormat(tfFormatter); ![]() |
|
|||||
|
Регистрация: Jun 2005
Адрес: Moscow - immigrate from Volgodonsk
Сообщений: 2,534
|
кстати да...New!
вот если бы писали как подабает , быстрее бы решили, Нильса на вас не хватает )) |
|
|||||
|
Цитата:
![]() но Ваш код не работат. |
|
|||||
|
и правда не работает, хотя с обычным .text все работает. Тогда как вариант - сделать setTextFormat в onLoad сразу после присваивания текста текстовому полю.
|
|
|||||
|
Цитата:
|
|
|||||
|
Регистрация: Jun 2005
Адрес: Moscow - immigrate from Volgodonsk
Сообщений: 2,534
|
content_txt.html = true;
насчет вот этой строчки не уверен |
![]() |
![]() |
Часовой пояс GMT +4, время: 05:10. |
|
|
« Предыдущая тема | Следующая тема » |
|
|