Well, actually that doesn't appear to be the solution in my case.
The initial popup is centered through the popupmanager. But the click of a button causes a state change, which makes the popup grow. In which case the upper left corner stays put, but the window grows right and downward.
I did find a fix in which I can change the (x,y) coordinates in the new state. Prior to that discovery, I thought there was a 'hard' way to do what I wanted.
But now I wonder if my 'fix' is kosher.
1 person found this helpful
You can add a listener for the "currentStateChanged" event to be dispatched from the parent component. Then in that event you check to see if you have a popup on the screen and if so run PopUpManager.centerPopUp( myPopUpInstance );
Oh, okay. I'll try that.
Seems better than defining the (x,y) coordinates in the mxml.