0 Replies Latest reply on Aug 11, 2008 12:21 AM by Thomas FRANQUELIN

    htmlText and CSS

    Thomas FRANQUELIN
      Hi,

      I'd like to use write text formatted in html, and use CSS on it. Something like:
      <mx:Text styleName="example.css">
      <mx:htmlText>
      <![CDATA[
      <example1>text 1 </example 1>
      <example2>text 2 </example 2> ]]>
      </mx:htmlText>
      </mx:Text>

      and a CSS file like:

      .example1 {
      fontSize:14;
      }

      .example2 {
      fontSize:16;
      }
      (I know this doesn't work at all!)
      Is there a simple way to do that, if possible directly in MXML? It seems I can do this in ActionScript (although I haven't figured out how yet) but it seems overcomplicated and not really readable.
      Thank you for your answers.

      Thomas