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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:22:38+00:00 2026-06-08T03:22:38+00:00

I have two VBoxes divided via a HDividedBox. Is it possible to show or

  • 0

I have two VBoxes divided via a HDividedBox. Is it possible to show or hide one of the VBox by double clicking on HDividedBox?
I know the use of moveDivider() and getDividerAt() methods but is there any HDividedBox functionality for this kind of problem.

  • 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-08T03:22:40+00:00Added an answer on June 8, 2026 at 3:22 am

    So, i recommend to use custom component instead of HDividedBox ;).

    Specially for you – event-based component, which process double-click on divider (200ms – doubleClick interval):

    <?xml version="1.0" encoding="utf-8"?>
    <mx:HDividedBox xmlns:mx="http://www.adobe.com/2006/mxml" initialize="hdividedbox1_initializeHandler(event)">
        <mx:Metadata>
            [Event(name="dividerDoubleClick", type="mx.containers.DividerDblClickEvent")]
        </mx:Metadata>
        <mx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.DividerEvent;
                import mx.events.FlexEvent;
    
                private var _timer:Timer = new Timer(200,1);                        
    
                protected function hdividedbox1_initializeHandler(event:FlexEvent):void{
                    this.addEventListener(DividerEvent.DIVIDER_PRESS, divider_press);
                }           
                protected function divider_press(event:DividerEvent):void{
                    if(_timer.running){
                        event.preventDefault();
                        event.stopPropagation(); // not sure what of it use
    
                        dispatchEvent(new DividerDblClickEvent(DividerDblClickEvent.DOUBLE_CLICK, event.dividerIndex));
                    }else{
                        _timer.start();
                    }
                }           
            ]]>
        </mx:Script>
    </mx:HDividedBox>
    

    AND custom event

    package mx.containers
    {
        import flash.events.Event;
    
        public class DividerDblClickEvent extends Event{
    
            // Define static constant.
            public static const DOUBLE_CLICK:String = "dividerDoubleClick";
    
            public var dividerIndex:int = -1; // not set
    
            public function DividerDblClickEvent(type:String, dividerIndex:int = -1, bubbles:Boolean=false, cancelable:Boolean=false){
                super(type, bubbles, cancelable);// Call the constructor of the superclass.
    
                this.dividerIndex = dividerIndex;// Set the new property.
            }
    
            // Override the inherited clone() method.
            override public function clone():Event {
                return new DividerDblClickEvent(type, dividerIndex);
            }
        }
    }
    

    Example of using:

        <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*" xmlns:c="mx.containers.*">
    
        <mx:Script>
            <![CDATA[
                import mx.effects.easing.Cubic;
            ]]>
        </mx:Script>
    
        <mx:AnimateProperty id="hide" easingFunction="{Cubic.easeIn}" target="{to_hide}" property="width" toValue="0" duration="700" />
    
    <c:HDividedBoxD height="100%" width="100%" dividerDoubleClick="hide.play();" >
        <mx:VBox height="100%" width="50%" backgroundColor="#00FF00">
            <mx:Label text=" some text left 1"/>
            <mx:Label text=" some text left 2"/>
        </mx:VBox>
        <mx:VBox id="to_hide" height="100%" width="50%" backgroundColor="#0000FF">
            <mx:Label text=" some text right 3"/>
            <mx:Label text=" some text right 4"/>       
        </mx:VBox>      
    </c:HDividedBoxD>       
    </mx:Application>
    

    You can modify that module as you want. I want just thanks:)

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

Sidebar

Related Questions

Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two classes (MVC view model) which inherits from one abstract base class.
I have two tables inside a database. One stores unique userNames and a unique
I have two function, one function is a reload function that does a ajax
Have two events: $('body').mouseup(function(e){} and $('.toggle').click(function(e){} I only want one of these to trigger.
I have two list having many to many relationship. i know how to handle
I have two structs (part of the assignment). A list of one -- Activity,
Have two sets of data (two tables) for patient records, one 1999-2003, the other
Have two issues one is showFromToolbar statement format warning issue and another is that
I have two tables. One is Employee_Mstr and other is EmployeeLeaveRequest_mstr . My data:

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.