In addition... Depending on where the loader is in the display list, the popup seems to move around relative to it.
// AS3 loader = new SWFLoader(); addChild(loader); // MXML <mx:SWFLoader id="loader"/> --- In flexcoders@yahoogroups.com, "jamesfin" <james.alan.finni...@...> 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... >