I wrote a component in ActionScript that is designed to be used as a pop-up, and it needs to center itself. I tried invoking PopUpManager.centerPopUp(this) from the constructor, and then I tried it in the createChildren method, but the Flash player seemed to ignore it both times. The pop-up kept appearing in the upper left corner of the screen.
I don't have this problem with custom MXML components; I simply put PopUpManager.centerPopUp(this) in the creationComplete event handler, and it works fine. Is there a way to successfully invoke PopUpManager.centerPopUp(this) from inside an ActionScript component? -Jim -- 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/

