[flexcoders] centerPopUp in ActionScript component

2006-08-10 Thread dadrobson
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

Re: [flexcoders] centerPopUp in ActionScript component

2006-08-10 Thread Joan Tan
Title: Re: [flexcoders] centerPopUp in ActionScript component You cant call centerPopUp(this) in the constructor, but, I was able to call it on the creationComplete event from within my AS component. Here is an example that worked: package { import mx.controls.*; import