Multiple Popups


I have multiple popups firing for network timeout, loss of network connection, etc during different states of the app. When more than one of these fires the user sometimes has to close several popups and eventually gets back to a state where only the backdrop is showing. Is it possible to clear any visible popups when more than one is showing?



How do you have the logic for this set up?
What you could do is set up a switch statement with a a timeout on them.