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

  • Home
  • SEARCH
  • 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 3930532
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:15:57+00:00 2026-05-19T23:15:57+00:00

I have a (hopefully) quick question. I’ve got some stepper boxes. Though really this

  • 0

I have a (hopefully) quick question. I’ve got some stepper boxes. Though really this could apply to any interactive component. I want the selected box to lose focus when when I click anywhere else ( stage included ). Is there an easy way to do this? I can’t seem to find an effective way to make it lose focus.

  • 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-19T23:15:58+00:00Added an answer on May 19, 2026 at 11:15 pm

    In case anyone else finds their way here seeking a solution to this problem, here is the answer:

    private function onGlobalMouseUp(event : MouseEvent) : void {
            var fm:FocusManager = new FocusManager(stage);
    
            //Since Flash Player can set focus on subcomponents as well as on components themselves, 
            //findFocusManagerComponent is used to find the component that either has focus or contains the subcomponent 
            //that has focus. If, for example, a TextField contained within a TextArea component has focus, findFocusManagerComponent 
            //will return the TextArea component, and not the TextField.  This being the case, we can definitely determine 
            //whether the target object of the MouseUp event is a component (or is part of a component).  If the target
            //object is NOT a component (nor contained within one), then we clear all component focus.
    
            if(fm.findFocusManagerComponent(event.target as InteractiveObject) is UIComponent){
                //target of MouseUp is either a UIComponent, or is contained within a UIComponent, so do nothing.
            }else{
                 //target of MouseUp is neither a UIComponent, nor is it contained within a UIComponent, so set component focus to null.
                fm.setFocus(null);
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully this is a really quick one ;) I have written a lexer /
This is a (hopefully) really simple question - I have been told recently that
A quick question about the UISegmentedControl class on the iPhone. Hopefully, some may have
I have a quick (hopefully simple) question. I have some information stored in a
Hopefully this question is quick and painless I have a mvc view where i
Just a (hopefully) quick question, I have the following HTML code: <tr> <td><img src=img/icons/file_pdf.png></td>
i have what i hope is a quick question about some code i am
I have a quick and hopefully simple question that I hope someone can help
Quick question, hopefully I am just missing something simple. Ok I have one class
Quick and hopefully obvious question. I have a progmatically created button in my iPhone

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.