Код:
//Сделано на скорую руку и покорявому =)
//на сцене: sendBtn - кнопка
// input - текстовое поле
i = 1;
textY = 0;
lineHeight = input.textHeight;
sendBtn.onRelease = function(){
createText();
}
function createText(){
this.createTextField("m"+i, i, 0, textY, input.textWidth, lineHeight);
createField();
this["m"+i].text = input.text;
input.text = "";
textY += lineHeight;
i++;
}
function createField(){
this["m"+i].type = "dynamic"
this["m"+i].border = true;
this["m"+i].multiline = true;
this["m"+i].color = 0x000000;
}
к примеру, здесь не верно работает. по крайней мере у меня. шрифт на инпуте стоит "Times New Roman"