丰富的可编辑文本选择颜色

发布于 2024-12-05 04:37:06 字数 420 浏览 7 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

属性 2024-12-12 04:37:06

现在的属性略有不同。它是 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 an unfocusedTextSelectionColor. 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文