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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:56:03+00:00 2026-06-08T11:56:03+00:00

In other MXML components, you can do stuff like use curly brackets to embed

  • 0

In other MXML components, you can do stuff like use curly brackets to embed scripting, use “&#13”, and other stuff like that in their text and/or label attributes. Apparently mx:Buttons’ label attributes are so locked down that the normal suggestions for other components aren’t working. I could try just setting the labels in the main script of an MXML file or something, but that’s sloppy programming if it can be avoided (the labels’ values are going to be constant in this case). Is there not some way to put a line break in the attribute in MXML?

As for using “&#13”, that gave me a line break at least, but any text to the right of that sequence disappeared. This makes me think there may be a way to make that work, but so far, I haven’t found such a way.

Thanks!

EDIT: One thing though: I don’t want to do anything that depends on the particular canvas or panel or whatever that the button’s on to be actually created or anything like that. Latency, in that case, could cause the user to see the label change.

  • 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-08T11:56:05+00:00Added an answer on June 8, 2026 at 11:56 am

    Alright, here’s basically the answer to this question:

    Adobe Flex: Word Wrap in Button Label (thread)

    https://stackoverflow.com/a/1654948/279112 (answer I’m referring to)

    The only problem here is that, even though newlines and word-wrapping both work in his example, they don’t do that great of a job of working in conjunction with one another. It’s good enough for what I’m currently needing to do though, so I’ll improve on that later. Credit goes to danii and Alex for answering this initially, as well as to Christian Nunciato for providing this particular form of the answer.

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

Sidebar

Related Questions

Other than that I don't know if I can reproduce it now that it's
I'm trying to put my components in a window container that can be closed
Other questions dealing with use of match_parent pre 2.2 have answers stating one should
Other than using browser,How can I get the public key of a websites which
Other than the fact that PNG is a more common image format, is there
I have several mxml components in an app, all of which need the same
Depending of some flag I want to use certain component in my mxml. There
In my Flex 4.6 web application I use mainly spark components, but there is
I have a component library. It has a manifest file that looks like this:
I have a flex project that is made of up several custom components that

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.