No it shouldn't be ncessary. I just like to have the little bit of
extra control.

Andrew.


--- In flexcoders@yahoogroups.com, "Eric Raymond"
<[EMAIL PROTECTED]> wrote:
> Thanks I will try that.
> 
> I tend to not explicitly size my popups and let Flex determine the
> sizing.  Is that necessary?
> 
> --- In flexcoders@yahoogroups.com, "Andrew Spaulding" <[EMAIL PROTECTED]>
wrote:
> > I have had similar experiences where a popup appears to be shown
> > behind the application, and by having modal transparency set, you can
> > see that the popup method is called because the application dims out.
> > I have also played with popups from an application loaded within
> > mx:Loader and have also had weird behaviour.
> > 
> > As a result of these my createPopUp method uses _root as the parent
> > movie clip, and the reference movieclip for centrePopUp is
> > mx.core.Application.application ...
> > 
> > maybe try the following:
> > 
> > import mx.managers.PopUpManager;
> > 
> > public function showPopUp( window:Object, vars:Object, h:Number,
> > w:Number ):Void
> > {
> >   var popup = PopUpManager.createPopUp( _root, window, true, vars,
> true );
> >   popup.width = w;
> >   popup.height = h;
> >   popup.centerPopUp( MovieClip(mx.core.Application.application) );
> > }
> > 
> > 
> > In the above showPopUp method I pass it the popup window, an init
> > object (if neccessary), and a height and width.
> > 
> > Try it and see how it goes,
> > 
> > Andrew Spaulding
> > www.flexdaddy.com
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Eric Raymond"
> > <[EMAIL PROTECTED]> wrote:
> > > The parent of the popup is set to "this".
> > > 
> > > We pass no arguments to centerPopup.  According to the docs this
uses
> > > the parent specified in createPopup.  (But I've also tried it with
> > > "this" to no avail.)
> > > 
> > > Yes, I understand that it is hard to dig in without a test case. 
> > > Sadly popups work well in some places in my app and not in others.
> > > 
> > > I was hoping that someone out there had similar problems and had
made
> > > sense out of this.
> > > 
> > > --- In flexcoders@yahoogroups.com, Manish Jethani
> > > <[EMAIL PROTECTED]> wrote:
> > > > On 6/11/05, Eric Raymond <[EMAIL PROTECTED]> wrote:
> > > > > We've been having a number of problems with popup windows doing
> > > > > strange things.
> > > > 
> > > > As Alex said, it's hard to say without looking at your code. 
If you
> > > > could create a simple test case that shows the problem, that'd be
> > > > cool.
> > > > 
> > > > > 1) They popup behind the window which created them.
> > > > 
> > > > Did you pass 'this' as the first argument to
> > > > PopUpManager.createPopUp() from the window that created them?  You
> > > > need to specify the parent of the popup window.  Make sure you got
> > > > that right.
> > > > 
> > > > > 2) They pop up in the upper left even though we asked them to be
> > > > > centered over their parent via centerPopup().
> > > > 
> > > > Again, did you pass 'this' as the argument to centerPopUp() ?




 
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/
 


Reply via email to