
Код:
var txtBack:TextField = this.createTextField ("txtBack", this.getNextHighestDepth (), 100, 100, 200, 30);
var txt:TextField = this.createTextField ("txt", this.getNextHighestDepth (), 100, 100, 200, 30);
var fmt:TextFormat = new TextFormat ();
fmt.font = "Arial"
fmt.size = 20
txtBack.setNewTextFormat (fmt);
fmt.leftMargin = 6;
txt.setNewTextFormat (fmt);
txt.type = "input";
txt.border = true;
txtBack.html = true
txt.onChanged = function () {
txtBack.htmlText = "(<font color='#FFFFFF'>" + this.text + "</font>)";
};
txtBack.text = "()";