Показать сообщение отдельно
Старый 09.11.2005, 15:01
unlexx вне форума Посмотреть профиль Отправить личное сообщение для unlexx Найти все сообщения от unlexx
  № 5  
Ответить с цитированием
unlexx

Регистрация: Jun 2005
Адрес: Ekaterinburg
Сообщений: 235
Отправить сообщение для unlexx с помощью ICQ
var format:TextFormat = new TextFormat();
format.align = "justify";

var txtField:TextField = this.createTextField("txtField", this.getNextHighestDepth(), 100, 100, 300, 100);
txtField.multiline = true;
txtField.wordWrap = true;
txtField.border = true;
txtField.text = "When this text is justified, it will be "
+ "spread out to more cleanly fill the horizontal "
+ "space for each line. This can be considered an "
+ "improvement over regular left-aligned text that "
+ "will simply wrap and do no more.";
txtField.setTextFormat(format);

это взято из хелпа