Make TextField a password entry field
package{
import flash.display.Sprite;
import flash.text.*;
public class Main extends Sprite{
public function Main(){
var t:TextField = new TextField( );
t.width = 100;
t.height = 20;
t.border = true;
t.background = true;
t.type = TextFieldType.INPUT;
t.displayAsPassword = true;
addChild(t);
}
}
}
Related examples in the same category