05/05/2011

Afficher du html dans un composant RichText

L'attribut htmlText n'existe plus en Flex 4 dans les composants sparks.
Mais on peut quand même afficher du html dans un richText, un textarea... par exemple :

<s:RichText>
  <s:content>
    <s:p>Mon texte normal <s:span fontWeight="bold" color="#ff0000"> puis gras et rouge</s:span></s:p>
  </s:content>
</s:RichText>


idem pour le textarea

<s:TextArea>
  <s:content>
    <s:p><s:img source="image.gif"/>texte normal <s:span fontSize="24"> puis grand </s:p>
  </s:content>
</s:TextArea>

Aucun commentaire:

Enregistrer un commentaire