masked password in textArea with flash actionscript
import fl.controls.CheckBox;
import fl.controls.TextArea;
var cB:CheckBox = new CheckBox();
cB.label = "Display as Password";
cB.addEventListener(Event.CHANGE, cB_password);
cB.width = 200;
cB.move(10, 5);
addChild(cB);
var tA:TextArea = new TextArea();
tA.displayAsPassword = false;
tA.width = 125;
tA.move(15, 40);
addChild(tA);
function cB_password(evt:Event):void {
tA.displayAsPassword = cB.selected;
}