I think it's based on the parent that you specify when you add your
window to In the first place

 

i.e.

PopUpManager.addPopUp(myWindow, myParent);

PopUpManager.centerPopUp(myWindow);

 

If you specify:

Var myParent:DisplayObject = Application.application as DisplayObject;

 

When you center the window, it should center in relation to the parent.

 

If you were to specify:

Var myParent:DisplayObject = myOtherWindow;

 

It should center in relation to "myOtherWindow".

 

http://livedocs.adobe.com/flex/2/langref/mx/managers/PopUpManager.html

 

Jay Proulx

[EMAIL PROTECTED]

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nextadvantage
Sent: March 16, 2007 11:11 PM
To: [email protected]
Subject: [flexcoders] Center PopUp on Window not Application

 

Anyone have some code to center a title window on window size vs
application center... thx Aaron

 

Reply via email to