Scroller 可以添加到 mxml 中的 Richeditabletext 中。
<s:BorderContainer>
<s:Scroller width="335" height="265" >
<s:RichEditableText backgroundColor="0x900000" id='_text' color="0x000000" width="335" height="265" text="Hellooooo"/>
</s:Scroller>
</s:BorderContainer>
但是在 Actionscript 中实现的相同会引发参数错误
ArgumentError: This operation is not supported.
at spark.components::Scroller/addElement()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2277]
引发错误的 Actionscript 代码
var bc:BorderContainer = new BorderContainer();
var scroller:Scroller = new Scroller();
var richEditableText:RichEditableText = new RichEditableText();
scroller.addElement(richEditableText);
bc.addElement(richEditableText);
changedTextComponent.addElement(bc);
提前致谢..