Hi,
can anyone see why this doesn’t work? The password_txt textField doesn’t become visible with the function but trace works.
stop();
this.createTextField(“username_txt”, this.getNextHighestDepth(), 450, 235, 120, 20);
focusManager.defaultPushButton = login_btn;
username_txt.setFocus();
username_txt.border = true;
username_txt.type = “input”;
username_txt.setFocus();
username_txt.maxChars = 15;
username_txt.onChanged = function():Void {
if (username_txt.text == “Pucci”) {
this.createTextField(“password_txt”, this.getNextHighestDepth(), 450, 265, 120, 20);
this.password_txt.password = true;
this.password_txt.border = true;
this.password_txt.visible = true;
this.password_txt.type = “input”;
trace("Text within the comments field = "+username_txt.text);
}
};