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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:04:31+00:00 2026-06-09T23:04:31+00:00

Using AIR 3.1 and testing with both the (desktop AIR) simulator and a Nook

  • 0

Using AIR 3.1 and testing with both the (desktop AIR) simulator and a Nook Tablet (running Android 2.3).

I’m using the following code to add a modal popup…

PopUpManager.addPopUp( popUp, FlexGlobals.topLevelApplication as DisplayObject, true );

For the web and Desktop versions of AIR, the above code prevents buttons or other things that are under/behind the modal popup from being clickable.
On AIR mobile however, buttons can be clicked behind the modal blocker.

I also tried to create my own modal blocker by adding a 100% width/height UIComponent to the top level application and then displaying my popup on top of that.
I drew a partially transparent rect into the “blocker” UIComponent’s graphics object and then I added a MouseEvent.CLICK listener to it as so:

blocker.addEventListener( MouseEvent.CLICK, onMouseClick, true, int.MAX_VALUE );

// Then my handler looked like this
private function onMouseClick( event:Event ):void {
    event.stopImmediatePropagation();
}

I tried useCapture values of both TRUE and FALSE but the behavior I saw on the Nook stayed the same. I was able to click on buttons that were underneath of my modal blocker.

What am I missing here? Something obvious that I’m overlooking?

  • 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-06-09T23:04:33+00:00Added an answer on June 9, 2026 at 11:04 pm

    You could try adding a Mouse_Down or click listener to the stage, then stopping it’s propagation if the target isn’t a descendant of your popup.

    stage.addEventListener(MouseEvent.CLICK,blockClick,true,int.MAX_VALUE,true);
    
    function blockClick(e:MouseEvent):void {
        var curTarget:DisplayObject = e.target as DisplayObject;
    
        while(curTarget){
            if(curTarget == popup) return;
            curTarget = curTarget.parent;
        }
    
        e.stopImmediatePropagation();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using AS3 Air for Android, What code can I use to list all or
I am deploying a desktop application using AIR, and I would like to store
I am writing application on ActionScript for Android using Adobe AIR with native extentions.
I'm using Action Script 3 to make android game using air for android I
I am developing a chat application for Android, using AIR/Flex and Red5. But Acoustic
I am developing an interactive video application using AIR on Android. The application is
I am writing a desktop application and trying to decide between using AIR (FLex)
I am using Adobe Air to create a desktop application. In that application I
I was testing out the mmultP function from repa-algorithms-3.2.1.1 with the following code (a
I'm writing an app for Android using Adobe AIR 3.0 and facebook action script

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.