开发者

AS3 - Highlighted text color

Does F开发者_开发知识库lash auto set the color of highlighted text? For some reason it is some kind of blue. How can I change it to white for example?

Screenshot: http://i.stack.imgur.com/b6jnu.jpg

Thanks.


This can't be done using pure ActionScript unless you want to try to write your own implementation of TextField, which I can only imagine would be a nightmare.

Flex allows you to set styles for selected text colors, which I'm guessing is what is being used in the screenshot you posted. Here's a blog entry on how to do it using Flex 4:

http://blog.flexexamples.com/2009/11/07/setting-the-selection-highlight-color-on-a-spark-richeditabletext-control-in-flex-4/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜