To make html work for the Text component, you should be using the htmlText property. Here is an example:

 

<mx:Text width="400">

        <mx:htmlText><![CDATA[This is <font color="#FF0000">HTML text</font> in a <b>Text component</b>. Using the <u>htmlText attribute</u> of the <font color="#008800">Text component</font> you can use basic HTML markup.]]></mx:htmlText>

    </mx:Text>

 

This Text component example is actually in the Flex Explorer Samples, by the way. Hope this helps.

 

Joan


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle
Sent: Wednesday, March 29, 2006 8:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex2 :: mx:Text :: Problem with html property

 

Hi,

Has anyone had problems with the 'html' property being set to true on the Text component?

I have mine set to true and it is still showing <p> tags, not html formatting?

Peace, Mike

--
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




YAHOO! GROUPS LINKS




Reply via email to