丰富的可编辑文本选择颜色
我是 Flex 新手,实际上我正在阅读有关 Flex 4 的简单教程(我使用的是 flash builder 4.5),这是 教程。
我添加了一个 RichEditableText,然后我应该指定属性 selectionColor,但是当我将其添加到源代码中时,IDE 给我一个错误,比如此属性不存在。
<s:RichEditableText x="179" y="95" text="hello" fontSize="24" fontWeight="bold" color="#E52222" selectionColor="#000000" />
I'm new to flex, actually I'm reading a simple tutorial about Flex 4 (I'm using flash builder 4.5) this is the tutorial.
I added a RichEditableText and then I should specify the property selectionColor, but when I add it to the source code, the IDE give me an error like this property do not exist.
<s:RichEditableText x="179" y="95" text="hello" fontSize="24" fontWeight="bold" color="#E52222" selectionColor="#000000" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在的属性略有不同。它是
focusedTextSelectionColor
还有一个unfocusedTextSelectionColor
。您正在阅读的文章适用于 Flex Gumbo 预发行版。这基本上是 4.0 的测试版,现在我们使用的是 4.5 SDK,因此存在细微的差异。这是来自 FlexExamples 的一个很好的教程: http://blog.flexexamples.com/2009/11/07/setting-the-selection-highlight-color-on-a-spark-richeditabletext-control-in-flex-4/The property is slightly different now. It's
focusedTextSelectionColor
There's also anunfocusedTextSelectionColor
. The article you are reading is for a Flex Gumbo Pre-Release. That's basically a beta version of 4.0 and now we're on the 4.5 SDK so there are slight differences. Here is a good tutorial from FlexExamples: http://blog.flexexamples.com/2009/11/07/setting-the-selection-highlight-color-on-a-spark-richeditabletext-control-in-flex-4/