8/5/2010 2:24:15 AM
Title:
get all children
How to close all windows that are lauunching from the current window?
8/5/2010 5:41:55 AM
Hi Yadu,
this is just suggestion form my side.. may help you..
when ever a new window open push it reference in to array and when every you want to close all window close window one by one form the array reference list.
or dispatch a general event from parent window to the child window which will close the all child window one by one.
Regards,
Virat Patel
8/5/2010 6:05:45 AM
to close all the opened windows while exiting application you can write the following code in actionscript 3
private function exitApp( e:Event ):void {
e.preventDefault();
for ( var i:int = NativeApplication.nativeApplication.openedWindows.length - 1; i >= 0; --i ) {
NativeWindow( NativeApplication.nativeApplication.openedWindows[i] ).close();
}
}