Here are two ways. Unfortunately, the text does not center.
Tracy
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"
initialize="initUI()">
<mx:Script><![CDATA[
function initUI():Void
{
btn2.label = "one\ntwo\nthree\n"
}
]]></mx:Script>
<mx:Button label="My{newline}Button" />
<mx:Button id="btn2" />
</mx:Application>
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Omar Ramos
Sent: Monday, July 18, 2005 5:51 PM
To: [email protected]
Subject: [flexcoders] Breakline in Buttons.
Hi everyone,
Is there a way to instert line breaks in a button? so I can have
multiline text in it. I have tried html but it doesn't render it. Any
ideas? thanks.
Omar Ramos
System Developer
Nobox Marketing Group, Inc
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/