check whether the content is successfully loaded or not with UILoader using flash actionscript
import fl.controls.TextArea;
import fl.containers.UILoader;
var uiL:UILoader = new UILoader();
uiL.addEventListener(IOErrorEvent.IO_ERROR, uiLoader_ioError);
uiL.source = "SOMETHING.jpg";
addChild(uiL);
function uiLoader_ioError(evt:IOErrorEvent):void {
var tF:TextFormat = new TextFormat();
tF.color = 0x0000FF;
tF.font = "Monotype Corsiva";
tF.bold = true;
tF.size = 14;
var tA:TextArea = new TextArea();
tA.setStyle("textFormat", tF);
tA.text = evt.text;
tA.width = 300;
addChild(tA);
}
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;
}