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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:51:23+00:00 2026-06-02T05:51:23+00:00

In my .mxml file, I am populating two side by side Labels with text

  • 0

In my .mxml file, I am populating two side by side Labels with text data from a database.

Like this:

    <s:Label x="10" y="37.5" width="100%" text="{data.city}"/>
    <s:Label x="86" y="36.75" width="100%" text="{data.state}"/>

Sometimes, I will get a particularly long piece of text data and this will cause the 2 labels to overlap each other and become totally unreadable.

I think this is happening because I have the x and y set. Is there a way to make this more dynamic?

Thanks!

  • 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-02T05:51:25+00:00Added an answer on June 2, 2026 at 5:51 am

    I would recommend exploring different Flex layout containers.

    HGroup

    <s:HGroup>
        <s:Label text="{data.city}"/>
        <s:Label text="{data.state}"/>
    </s:HGroup>
    

    This provides the kind of layout it sounds like you’re looking for from your example. However, you may also want to look at a few other containers Flex offers.

    Form

    Flex forms align data in ways that are often useful for creating, well, forms. You may want to consider this for your UI, especially if you’re allowing a user to give input that persists back to your DB.

    <s:Form>
        <s:FormItem label="City:">
            <s:Label text="{data.city}"/>
        </s:FormItem>
        <s:FormItem label="State:">
            <s:Label text="{data.state}"/>
        </s:FormItem>
    </s:Form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a label component in a mxml file like below <mx:Label x=700 y=409
in my mxml file I have images declared like this: <mx:Image x=0 y=0 source=assets/bigpicture.png
I'm building a Flex/Flash Builder 4 application that loads data using E4X/XML, like this:
In my MXML file, I have a tab navigator with three vboxes. <mx:TabNavigator width=624
How can I get all <s:Images/> from an MXML file regardless of where they
I would like to convert either an HTML or MXML file document to Microsoft
I use a popup loaded from different MXML file: private function showAddPopUp():void{ addPopUP =
I am working with a flex project with a main mxml file and two
If I build my mxml file to an .air application, NativeDragEvent works like a
im calling an actionscript class from my main mxml file. the actionscript class is

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.