You can do popup.centerPopUp(centerRef: MovieClip). If you do not pass the centerRef, it centers on the window that contains the createPopUp()
Don't forget about the Flex API on liveDocs: http://livedocs.macromedia.com/flex/15/asdocs_en/index.html Tracy -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chris.alvarado Sent: Friday, July 08, 2005 3:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] popupmanager . . . position the window? good afternoon everyone, i have a but that loads a popup window with a form in it. i need to position that window the in center of my app. what is the best way to go about this? my popup function looks like this: private function showPopup(modal) { var popup = mx.managers.PopUpManager.createPopUp(_root, AddForm, modal, {deferred: true}); } i know i can pass the x and y coords as part of the initialization object for the window, but i cant figure out how to dynamically determin the height and width of the app and the window im creating in order to position the window in the center. -- -chris.alvarado [application developer] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/