Wednesday, May 25, 2011

Adobe AIR - Opening Main Appllication from Child Window

Hi, I was trying to make the Main Application open and dock from a child window, here is the simple code to do this, it check if the Main application is not docked, if not if put that to front.

if(FlexGlobals.topLevelApplication.stage.nativeWindow.visible == false)
{
FlexGlobals.topLevelApplication.stage.nativeWindow.visible = true;
FlexGlobals.topLevelApplication.stage.nativeWindow.orderToFront();

}
FlexGlobals.topLevelApplication.stage.nativeWindow.orderToFront();


-Varun Rathore

No comments:

About Me