How do you remove an Alert component?

If you couldn’t tell, I’m suddenly desperate.

How do you remove an Alert component?

Alert.show returns a reference… but to what, I’m not sure. Additionally, the PopUp created via PopUpManager… where are he and the alert at depth-wise?

To use these components, should the rest of my components be using DeptManager instead of my own depths?

So many questions, so little time…

Comments

2 responses to “How do you remove an Alert component?”

  1. Julian Avatar

    try PopUp.deletePopUp(); or it’s the instance name of your alert.deletePopUp();

  2. darron Avatar

    import mx.controls.Alert;
    var msgWin = Alert.show(“test”);

    // then to programmatically remove:
    msgWin.deletePopUp();