There’s a known issue with Alert’s in Flex, using the application level alert, or Alert.show. When you do:
function initApp() { ref = Alert.show("test", "", Alert.OK, this, Delegate.create(this, onAlertClose), null, Alert.OK); } function onAlertClose() { ref.deletePopUp(); }
The Alert’s background will stay around. In my investigations, he’s an mc in a very low negative depth. Removing him forcely messed up my app. Matt Chotin then recommended using a doLater. Upon doing so, it fixed my problem. I guess the invalidation routines co-chillin’ deep in the depths of UIObject remove the rect. ::shrugs::
At any rate, if you do this instead:
function onAlertClose() { doLater(this, "killPopup"); } function killPopup() { ref.deletePopUp(); }
It works good.
Took me 3 days to work through that mess; here’s to you not having to do so.