AS3组件之TextInput文本输入框

在库里面导入TextInput组件

import fl.controls.TextInput;
 
var newTextInput:TextInput=new TextInput();
addChild(newTextInput);
with(newTextInput){
    move(200,150);
    displayAsPassword=true;//是否显示成密码*号的样子
    editable=true;//是否允许用户编辑,默认为true
    maxChars=0;//最多可以输入多少个字符,0为不限制
    //restrict="123abc"//限制只能输入哪些字符
    text="";//默认显示什么内容

效果:http://www.yidianxindong.com/diary/365.html

posted @ 2015-08-29 19:10  stma  阅读(1183)  评论(0)    收藏  举报