代码添加输入文本

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);

原文地址:https://www.cnblogs.com/yanshuoistutu/p/2712651.html