click="showText()"/> </s:Application> Flex控件分类 Text控件: Label、RichText、RichEditableText、TextInput valueCommit="showMsg(fullProfile.text)"/> </s:Panel> </s:Application> RichText、RichEditableText
使用<s:RichEditableText>文字处理组件,分别对其字体颜色和背景颜色实现动画过渡效果。 实现思路: (1)创建MXML应用程序,设计用于实现颜色过渡效果的界面。 <? Declarations> <s:Panel width="507" height="319" horizontalCenter="0" verticalCenter="0" title="颜色变化动画效果"> <s:RichEditableText id="ret1" text="RichEditableText" left="0" right="0" top="0" bottom="30" fontSize="20" fontFamily Declarations> <s:Panel width="507" height="319" horizontalCenter="0" verticalCenter="0" title="颜色变化动画效果"> <s:RichEditableText id="ret1" text="RichEditableText" left="0" right="0" top="0" bottom="30" fontSize="20" fontFamily
VerticalLayout/> </s:layout> <s:Group width="100%" height="212"> <s:Scroller width="100%" height="100%"> <s:RichEditableText VerticalLayout/> </s:layout> <s:Group width="100%" height="212"> <s:Scroller width="100%" height="100%"> <s:RichEditableText