一直以为TextField不能设置背景色。其实可以。需要额外设定开关属性background。开启背景色以后,文本就不透明了。因为被背景色挡住了。默认是白色。
var tf:TextField = new TextField(); tf.background = true; tf.backgroundColor = 0xed6a00;
var tf:TextField = new TextField();
tf.background = true;
tf.backgroundColor = 0xed6a00;
本文首发:剑锋博客 尊重作者,请保留链接。
Tags: TextField, 背景色
名称 (*)
邮箱
网站
QQ群:设计学院 68075618,网站设计师 9908776