the call PopUpManager.centerPopUp() will centre the popup window over the calling window - you call it after the PopUpManager.createPopUp(...) call
Well i have used this function but it is useful in case of full view of window..but as i contract the window..popupremains at the center i want that it should also be center according to the contract or expand of the application window
When your popup is created, have it add an event listener to the stage for RESIZE events.
Recenter the popup in the handler for the event.
new Point(Application.application..width/2, Application.application.height/2));
popArrow.x = pos.x;
popArrow.y = pos.y
Add a resize event to the app and call PopUpManager.centerPopUp() again.
If this post answers your question or helps, please mark it as such.