Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7666841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:56:21+00:00 2026-05-31T14:56:21+00:00

I have been going crazy over this! I have an Air (2.6) app which,

  • 0

I have been going crazy over this! I have an Air (2.6) app which, when running opens up a pop up NativeWindow, to handle alerts.

public var _alertWindow:NativeWindow;

_alertWindow = new NativeWindow(windowOptions);
_alertWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
_alertWindow.stage.align = StageAlign.TOP_LEFT;
_alertWindow.bounds = new Rectangle(0, 0, content.width, content.height);

_alertWindow.title = "";
_alertWindow.alwaysInFront = true;

_alertWindow.x = Screen.mainScreen.bounds.width - _containerWidth;
_alertWindow.y = Screen.mainScreen.bounds.height - _containerHeight;
_alertWindow.stage.addChild(_contentContainer); 

This all works great – when closing the app via a close button I call:

    AppName._alert._alertWindow.close();
    NativeApplication.nativeApplication.exit();

I have had no problems with this across all platforms. But in Windows7, when right click on the taskbar and selecting ‘close-window’ only closes the main app and not its child NativeWindow. ( This keeps the app running in the background – so when a user tries to access it again it does’t run ) I have tried adding event listeners like Event.CLOSING, and various other methods but have failed. If anyone has any ideas on how to close windows from the ‘close window’ option in windows7.

Thanks for your help

Jono

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:56:23+00:00Added an answer on May 31, 2026 at 2:56 pm

    You can close all native windows that are open using something simillar to this:

     private function closeMenus() : void
     {
        var nativeWindows:Array = NativeApplication.nativeApplication.openedWindows;
    
        for ( var i:int = 0; i< nativeWindows.length; i++) 
        {
            if(!(nativeWindows[i] as NativeWindow).closed)
            {
                (nativeWindows[i] as NativeWindow).close();
            }
        }
     }
    

    Presuming you have a handler somewhere that calls exit:

    NativeApplication.nativeApplication.exit();
    

    You can place this code before this call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been going crazy with this: I have a banner which is structured like
I have been going crazy over a seemingly easy question with Python: I want
I have been going back through my app trying to handle all the memory
I have been going crazy on this program im writing. My decks dont seem
I have been going crazy over a problem with my tab control. It has
I am going crazy with this search bar in storyboards and have been trough
This one had me going crazy for awhile. I have an app that was
I'm literately going crazy with this one. I have been searching the answer and
I've been going around in circles for hours with this. I have a UserProfile
I've been driving myself crazy over the past few days over this one. We've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.