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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:57:47+00:00 2026-06-13T22:57:47+00:00

I have three component in the Hgroup and all three component can expand. But

  • 0

I have three component in the Hgroup and all three component can expand. But the problem is, all three component expansion to the right direction. and the container dont have enough space to do that, so what I need is

the first one expansion to the right

the second one expansion to the right and left

the third one expansion to the left.

and others will be push away in the process.

like this.

like this

But how can I define the component’s expansion direction?

The component’s code is like that

<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
         width.State2="500" height.State2="550"
         width.State1="330" height.State1="550">



    <s:states>
        <s:State name="State1"/>
        <s:State name="State2"/>
    </s:states>



    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>


    <mx:LinkButton includeIn="State1" x="222" y="519" label="Expand" click="currentState='State2'"/>
    <mx:LinkButton includeIn="State2" x="433" y="519" label="Return"
                   click="currentState='State1'"/>
</s:Group>

and in the main comp, three of those Comp will be nest in the HGroup

<s:HGroup  x="90" y="62" width="1000" height="550">
    <ns1:comp1>
    </ns1:comp1>
    <ns1:comp2>
    </ns1:comp2>
    <ns1:comp3>
    </ns1:comp3>
</s:HGroup>
  • 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-13T22:57:48+00:00Added an answer on June 13, 2026 at 10:57 pm

    easiest way would be with states.

    <s:states>
        <s:State name="normal"/>
        <s:State name="1Expanded"/>
        <s:State name="2Expanded"/>
        <s:State name="3Expanded"/>
    </s:states>
    

    then in your components:

    <ns1:comp1
        width="250"
        width.1Expanded="500"
        width.2Expanded="100"
        width.3Expanded="50">
    

    you can adjust these to fit what you need, but that was an example.

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

Sidebar

Related Questions

My problem is like this: In ASP DetailsView component we have three different EventArgs
I have problem with margin. Probably its very easy to solve, but i dont
Have three divs in a container that I want to float over a large
i have three java based web application app1,app2 and app3 at production. All 3
I have a .NET Compact Framework app that can runs on three windows machines
I have three tables: Context, Component and ComponentContext. The ComponentContext table links the Component
I have spent three days trying to find the solution to this problem to
I have three child game objects(as you can see in below picture with Red
i have placed a SqlDataSource component on my aspx page but while configuring the
how can i get an id of a many-to-many object? i have three models,

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.