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 "
", 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 "
", 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!
|