import flash.text.TextField;
import flash.text.TextFieldType;
import flash.events.MouseEvent;
var tb:TextField = new TextField();
addChild(tb);
tb.type = TextFieldType.INPUT;
tb.border = true;
tb.width = 80;
tb.height = 20;
tb.text = "adiniz";
function del(e:MouseEvent):void
{
tb.text = "";
}
tb.addEventListener(MouseEvent.CLICK,del);