
Код AS3:
var tf:TextField = new TextField();
addChild(tf);
tf.text = "Введите текст...";
tf.type = TextFieldType.INPUT;
tf.addEventListener(Event.CHANGE, onChange);
function onChange(e:Event):void {
trace(tf.text);
}
Или

Код AS3:
var tf:TextField = new TextField();
addChild(tf);
tf.text = "Введите текст...";
tf.type = TextFieldType.INPUT;
tf.addEventListener(Event.CHANGE, onChange);
var debug:TextField = new TextField();
addChild(debug);
debug.y = tf.textHeight + 4;
debug.text = "Ожидание...";
debug.autoSize = TextFieldAutoSize.LEFT;
function onChange(e:Event):void {
debug.text = "Вы только что изменили текст: " + tf.text;
}