Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-23-2012, 11:51 PM   #1
Howitzer21
Registered User
 
Join Date: May 2012
Posts: 27
Default In MXML, how can you insert a newline into the label attribute of an mx:Button?

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!
Howitzer21 is offline   Reply With Quote
Old 07-26-2012, 07:16 PM   #2
Howitzer21
Registered User
 
Join Date: May 2012
Posts: 27
Default

The answer's been reached at the thread I initially put out for this:

h tt p://stackoverflow.com/questions/11621952/in-mxml-how-can-you-insert-a-newline-into-the-label-attribute-of-an-mxbutton

(having to mess up the URL slightly to post it here)
Howitzer21 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:35 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.