If you have reference to that popup, you could remove it using the PopupManager's removePopup method.
PopUpManager.removePopUp( popup );
I tried that. But it is not working. I will explain you the whole problem. I am using Cairngorm framework for my application. I want to close the Pop up window from Command after checking the data. I am getting "null" value of that Popup Window although the Popup Window is visible. Now I am really confused and do not understand how to close or make invisible the Popup Window.
Hi Nirmal Kumar Bhogadi,
Try to create one reference to your View form where you opened your popup in ModelLocator class..
//In your ModelLocator create a variable of type PopUpView
public var popUpView:PopUpView;
and now in your PopUpView in show event call the below function...
// This is in your PopUpView page form where you are trying to open popup(Call show event on root tag of your page)
private function onShow():void
model.popUpView = this;
public function removePopUp():void
//Now in your command layer call
if(data == null)