代码添加输入文本

import flash.text.TextField;

import flash.text.TextFieldType;

var txt:TextField;

txt = new TextField();

txt.type = TextFieldType.INPUT;

txt.x = 300;

txt .y = 100;

txt.height = 20;

txt.width = 100;

txt.border = true;

stage.addChild(txt);

posted @ 2012-10-05 23:18  流年亂了浮生  阅读(212)  评论(0编辑  收藏  举报