On Sun, Dec 28, 2008 at 12:51 AM, Dan Vega <[email protected]> wrote:
> I am trying to center a popup window that is being displayed from a tree. If
> you just call the static centerPopUp it centers it in the tree. When you add
> the popup though i noticed the second argument is the parent object. How can
> I get a reference to the stage itself so I can center this popup correctly.
>
>             //add modal window
>             PopUpManager.addPopUp(_renamedir,this,true);
>             //center modal window
>             PopUpManager.centerPopUp(_renamedir);

You can use the application or the stage (depending on what you want)
as the parent.

  addPopUp(object, Application.application, ...)

Or

  addPopUp(object, stage, ...)

'stage' is a property of DisplayObject.

-- 
Visit me at manishjethani.com

Reply via email to