|
||||||
|
||||||
|
当前位置:首页 > CG动漫 > 资源 > 正文 |
认识flex文本控件
|
|
3.flex内置的文本编辑器RichTextEditor 我想这么多文本控件中,这个最强大,没什么好说的,文本支持html,虽然功能并不是很强大,但对于一般也够用了,大家可以测试一下 <?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="700" height="400"> <!-- The HTML text string used to populate the RichTextEditor control’s TextArea subcontrol. The text is on a single line. --> <mx:Script> <![CDATA[ [Bindable] public var htmlData:String="<textformat leading=’2’><p align=’center’><b><font size=’20’>HTML Formatted Text</font></b></p></textformat><br><textformat leading=’2’><p align=’left’><font face=’_sans’ size=’12’ color=’#000000’>This paragraph contains<b>bold</b>, <i>italic</i>, <u>underlined</u>, and <b><i><u>bold italic underlined </u></i></b> text.</font></p></textformat><br><p><u><font face=’arial’ size=’14’ color=’#ff0000’>This a red underlined 14-point arial font with no alignment set.</font></u></p><p align=’right’><font face=’verdana’ size=’12’ color=’#006666’><b>This a teal bold 12-pt.’ Verdana font with alignment set to right.</b></font></p><br><li>This is bulleted text.</li><li><font face=’arial’ size=’12’ color=’#0000ff’><u> <a href=’http://www.adobe.com’>This is a bulleted link with underline and blue color set.</a></u></font></li>"; ]]> </mx:Script> <!-- The RichTextEditor control. To reference a subcontrol prefix its ID with the RichTextEditor control ID. --> <mx:RichTextEditor id="rte1" backgroundColor="#ccffcc" width="605" headerColors="[#88bb88, #bbeebb]" footerColors="[#bbeebb, #88bb88]" title="Rich Text Editor" htmlText="{htmlData}" initialize="rte1.textArea.setStyle(’backgroundColor’, ’0xeeffee’)"/> </mx:Application> |
|
免责声明:本站刊载此文不代表同意其说法或描述,仅为提供更多信息。对本文有异议,请联络本站!
转载要求:文章作者及来源信息必需保留。转载之图片、文件请不要盗链本站地址,且不准打上各自站点的水印! |
近期推荐报道 | 返回首页更多精彩等着你! |
|
|
|
|
|
关于本站 | 联系方式 | 商业服务 | 合作伙伴 | 站点地图 | 免责声明 | 版权声明 | 在线投稿 | |||||
|