首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

flex有关问题

2012-02-05 
flex问题RichTextEditor如何设置背景色,,还有我发现很多组件有BackGroundColor这个属性但是都不能设置背景

flex问题
RichTextEditor如何设置背景色,,还有我发现很多组件有BackGroundColor这个属性但是都不能设置背景色,,高手指点一下下。这里面的原理是什么。。谢谢。。

[解决办法]
你是想让中间的显示区域有背景色吗?

XML code
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"                        layout="absolute">    <mx:Script>        <![CDATA[            private function textEditorCreated():void            {                textEditor.textArea.setStyle("backgroundColor","red");            }                    ]]>    </mx:Script>    <mx:VBox>        <mx:RichTextEditor id="textEditor" creationComplete="textEditorCreated()">                    </mx:RichTextEditor>    </mx:VBox></mx:Application> 

热点排行