<?xml version="1.0"
encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#8E4343, #8E4343]">
<mx:Panel title="Text Control" layout="vertical" color="0xffffff" borderAlpha="0.15" width="500"
paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center">
<mx:Text width="100%" color="0x323232">
<mx:text>
This is a multiline, non-editable text component.
If you need an editable multiline component, use TextArea.
</mx:text>
</mx:Text>
<mx:HRule width="100%" />
<mx:Text width="100%" color="0x323232">
<mx:htmlText>
<![CDATA[This is <font color="#EE1122">HTML
text</font> in a <b>Text component</b>. Using the
<u>htmlText attribute</u> of the <font
color="#22A050">Text component</font> you can use basic HTML
markup.]]>
</mx:htmlText>
</mx:Text>
</mx:Panel>
</mx:Application>
No comments:
Post a Comment