Hi,

Oh the search facilities are great on flexcoders.

Ironically, this question was just answered 4 days ago or something. The Label is single line. CData interprets you linebreaks as line breaks. Although you don't see any text in the Label, "it is there" just multi line.

Peace, Mike

PS, don't put line breaks in it.

On 5/23/06, Dreamer <[EMAIL PROTECTED]> wrote:
Hello,flexcoders
      When I use FlexBuilder 2.0 Beta 3,I find an interesting problem.
      I want to use a Label with htmlText.when I writ like this:

   <mx:Label fontSize="14">
            <mx:htmlText>
                  <![CDATA[
                        <font color="#FF0000">This</font> is <b>html text</b> <i>in a</i> <font color="#666699">Label</font> <u>component</u></font>
                  ]]>
            </mx:htmlText>
      </mx:Label>
     

     It doesn't work.
     
      But if I write the code like this:
<mx:Label fontSize="14">
            <mx:htmlText>
                  <![CDATA[<font color="#FF0000">This</font> is <b>html text</b> <i>in a</i> <font color="#666699">Label</font> <u>component</u></font>]]>
            </mx:htmlText>
      </mx:Label>
                       
    It work well.I just change it by write the "!<[CDATA[ ]]>" and the html text in one the same line~Is that a bug??
Peace,
        Dreamer
        [EMAIL PROTECTED]
          2006-05-23


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
What goes up, does come down.

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to