2 Replies Latest reply on Feb 24, 2010 8:08 AM by LacioDrom

    How customizing button label

    LacioDrom Level 1

      Hi everyone,


      I wish to customize button label, in particular I 'd like to underline some label cheracter, like this: "my Button Label" ... B character is underlined !!!


      Could someonene suggest to me a clue?


      Thanks a lot,


        • 1. Re: How customizing button label
          Gregory Lafrance Level 6

          Use the htmlText property:


          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
            <mx:Label fontSize="30">
              <mx:htmlText><![CDATA[my <font color="#FF0000"><u>B</u></font>utton Label]]></mx:htmlText>


          If this post answers your question or helps, please mark it as such.

          Greg Lafrance - Flex 2 and 3 ACE certified


          Flex / AIR Development, Training, and Support Services

          • 2. Re: How customizing button label
            LacioDrom Level 1

            sorry, perhaps I explained oneself not clear: what I want to customize is a button label:


            <mx:Button label="Button label">


            Is it possible?