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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:45:20+00:00 2026-06-18T19:45:20+00:00

I have a MenuBar with objects that have children of type= check . E.g.:

  • 0

I have a MenuBar with objects that have children of type=”check“. E.g.:

Menu

  • Menu Item A

    / List item Check 1A

    / List item Check 2A

    / List item Check 3A

  • Menu Item B

    / List item Check 1B

    / List item Check 2B

My question is as follows: How can i avoid the MenuBar from hiding when the user clicks an item (itemClick event)? I want the user to be able to “check” several items at once, without the menu hiding/closing.

Bonus question: What is the easiest way to reset all the checked items? 🙂

Best Regards,

Sebastian

  • 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-18T19:45:21+00:00Added an answer on June 18, 2026 at 7:45 pm

    The only way I can advise you is to do monkey patching of the class Menu. I have tried to do it by me, it works as you described in your task.

    The main reason to do it is, that the functions we need to redefine use private members of this class. So we can’t just override them.

    The aim of our mission is to patch the function

    function mouseUpHandler(event:MouseEvent):void{...}
    

    At its end you can see the call

    hideAllMenus();
    

    We should add a new variable to control whether or not our item is of type “check”. So you need to add this line in the beginnig

    var isCheck:Boolean = _dataDescriptor.getType(item) == "check";
    

    and this condition at the end

    if (!isCheck) hideAllMenus();
    

    Don’t forget to do a trick to let your patched class be loaded before the SDK’s one.
    You can read about it here.

    Here is my working example. Menu1 has only check items and Menu2 only normal ones.

    The whole project can be found here

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

Sidebar

Related Questions

I have an application that lives in the menubar, without a main menu or
I have a GXT 2.x application with a Menubar Item that renders a separate
I have a div(menubar) that has a lot of links and these links are
I have menu bar and code is as follows <div style=background:#000; height: 25px;> <div
I have a menu bar that is rotated slightly. Here are two buttons as
I'm trying to have it so that multiple objects on a canvas in Tkinter
In Qt, I have a menubar that looks something like this: |File| +-------------------+ |Do
I have a menubar containing several menu items. The menubar is a div containing
I have a <p:menubar> in a xhtml template. The div that surrounds it has
I have this MenuBar control in Flex 3. How can I programmatically change the

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.