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 4016424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:44:18+00:00 2026-05-20T09:44:18+00:00

Suppose I have an application and a global event listener in it. Should the

  • 0

Suppose I have an application and a global event listener in it. Should the key events, who are fired in the PopUp, be caught by that listener? Or maybe popups are not placed in that hierarchy?
Here’s simplified test-code for you to understand what I’m talking about:

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()">
<mx:Script><![CDATA[
private function init():void {
            FlexGlobals.topLevelApplication.addEventListener(KeyboardEvent.KEY_DOWN, myKeyDownHandler);
        }

        private function myKeyDownHandler(event:KeyboardEvent):void {
            Alert.show("It works!");
        }

        private function makeNewPopup():void {
            var win:PopupWindow = new PopupWindow(this, new TestingForm(), true, "Popup", false);
            win.showPopup();
        }
]]></mx:Script>
<mx:VBox>
        <mx:TextInput/>
        <mx:Button label="MakePopup" click="makeNewPopup()"/>
    </mx:VBox>
</mx:Canvas>

Ok, what we have .. after running the application, put the input focus into the TextInput and press any letter. The Alert will be fired. Now, press the MakePopup and do the same in it TextInput .. no any feedback from it.

Any thoughts about that?

  • 1 1 Answer
  • 3 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-20T09:44:19+00:00Added an answer on May 20, 2026 at 9:44 am

    The parent of all popups is SystemManager. So, use FlexGlobals.topLevelApplication.systemManageror stage.

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

Sidebar

Related Questions

Suppose I have a GUI-only application that runs on Windows and I'd like to
Suppose that you have a big Data Entry Web Application Like Microsoft CRM ,
Suppose that I have a legacy java application with thousands of lines of code
I currently have a Web Application that runs off a global Javascript-based API, and
Emulate means to invoke these events programatically. Global context means that these event invocations
I have a 3rd party JavaScript application that declares several global functions and needs
Suppose we have an application (on a server) that has a set of resources:
I have an application that I am using a global route to query for
Suppose we have an application that's stable. Tomorrow, someone reports a big ol' bug
Suppose I have a web application, which uses jQuery for Ajax and UI. Now

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.