See if a Popup is up

Here is a little trick to see if a popup is up… give it a name and use getChildByName…

var systemManager:SystemManager = FlexGlobals.topLevelApplication.systemManager var popupStatus:* = systemManager.popUpChildren.getChildByName( 'popupStatus' ); if( popupStatus ) { PopUpManager.removePopUp( popupStatus ); }

1 comment on this post.
  1. mk:

    I guess popupStatus.isPopup would return the same.

Leave a comment