header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Yadu
Points:0
Posts:0

8/5/2010 2:24:15 AM

Title: get all children


How to close all windows that are lauunching from the current window?



1
Veer
Points: 480
Posts:0
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

2
HMS
Points: 280
Posts:0
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();
}
}



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 0+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions