Tweak: Application.application of the main application means nothing to the 
subapplication.

--- In [email protected], "jamesfin" <james.alan.finni...@...> wrote:
>
> Thanks for the tips.  The caveat here is that Application.application means 
> nothing to a multi-versioned subapplication.  I've tried passing that in to 
> the sub application as well as tried Application.application in the sub 
> application itself with no luck.
> 
> Any other takers with working code examples?
> 
> 
> 
> --- In [email protected], "myflexdownloads" <myflexdownloads@> wrote:
> >
> > I normally just create the popup as a child of Application.application and 
> > that way cenetering is perfect.
> > 
> > Web Admin
> > FlexDownloads.com
> > 
> > --- In [email protected], "jamesfin" <james.alan.finnigan@> wrote:
> > >
> > > I've been studying the sub application functionality lately and have a 
> > > question.
> > > 
> > > If a multi-versioned sub application wants to put up a popup via the 
> > > popup manager, it all works well except that the centerPopUp doesn't seem 
> > > to work correctly in that it isn't centered in the Main application.  
> > > This is probably due to that the loadForCompatibility is true and the 
> > > docs note the following:
> > > 
> > > "There are several ways to access the methods and properties of the main 
> > > application from the sub-application. These ways only work for 
> > > sub-applications that are loaded as children into a main application's 
> > > application domain. You cannot use these for sandboxed applications, or 
> > > for multi-versioned applications.
> > > 
> > > These methods include:
> > > 
> > >       Using the application property of the Application class. This 
> > > property accesses the root application from anywhere in the application. 
> > > For more information, see Accessing document and application scopes.
> > > 
> > >       Using the parentDocument property of the Application class. This is 
> > > useful if you have multiple applications embedded and want to just access 
> > > the immediate parent. For more information, see Accessing document and 
> > > application scopes."
> > > 
> > > 
> > > 
> > > So, I'll take PopUps in a multiversion sub application for $100...
> > > 
> > > 
> > > 
> > > What do I pass for the createPopUp first parameter to get it to center on 
> > > the main application hosting the sub application?  Or, can the main 
> > > application/parent move the window after it appears perhaps? Or, better 
> > > yet, the best solution?
> > > 
> > > 
> > > public static function createPopUp(parent:DisplayObject...
> > >
> >
>


Reply via email to