在AS3更改文本字段选择颜色 [英] Change TextField selection color in AS3

查看:792
本文介绍了在AS3更改文本字段选择颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能改变选择(高光)的文本字段的颜色在ActionScript 3?我有一个输入文本框与白色文字,黑色背景,因此,选择是不可见的,这是可怕的可用性。谢谢!

How can I change the select ("highlight") color of an TextField in actionscript 3? I've got an input textfield with white text on a black backdrop and as a result, selections are invisible, which is horrible for usability. Thanks!

推荐答案

试试这个:

var c:Color = new Color(MyTextField);

c.setTransform({rb:255});

或为更多的最新方法:

or for a more up to date approach:

<一个href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/ColorTransform.html#includeExamplesSummary" rel="nofollow">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/ColorTransform.html#includeExamplesSummary

这篇关于在AS3更改文本字段选择颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆