Flash - textarea组件的背景边框设置

TestArea组件背景透明,边框也透明。
myTextArea.depthChild0._visible = false;
TestArea组件背景透明,边框不透明。
_global.styles.TextArea.backgroundColor = undefined;
TestArea组件背景和边框的透明度。
myTextArea.depthChild0._alpha = 0;


TestArea组件背景颜色。
_global.styles.TextArea.backgroundColor = 0xff0000;

TestArea组件边框颜色。
myTextArea.setStyle("borderColor","0xff0000");//下
myTextArea.setStyle("highlightColor","0xff0000");//上
myTextArea.setStyle("color","0xff0000");//字
myTextArea.setStyle("shadowColor","0xff0000");//下
myTextArea.setStyle("borderCapColor","0xff0000");//左右外
myTextArea.setStyle("shadowCapColor","0xff0000");//左右内
myTextArea.setStyle("buttonColor", "0xffffff"); //顶部   (PS:这个是我补充的)


如下是我做过的设置
function cssInit(myTextArea:mx.controls.TextArea) {
myTextArea.enabled = false;   //让文字不可选
myTextArea.setStyle("backgroundColor", "0xffffff");
myTextArea.setStyle("fontSize", "12");
myTextArea.setStyle("fontFamily", "宋体");

//下面代码是让TextArea的边框不显示
myTextArea.setStyle("borderColor", "0xffffff");
//下
myTextArea.setStyle("highlightColor", "0xffffff");
//上
myTextArea.setStyle("color", "0x333333");
//字
myTextArea.setStyle("shadowColor", "0xffffff");
//下
myTextArea.setStyle("borderCapColor", "0xffffff");
//左右外
myTextArea.setStyle("shadowCapColor", "0xffffff");
//左右内
myTextArea.setStyle("buttonColor", "0xffffff");
//top
}

如何既不显示边框也不显示背景,以及修改disabledColor
var myTextArea = textinfo;
myTextArea.text = "士大夫士大夫十分!";
myTextArea.vScrollPolicy = "off";
myTextArea.hScrollPolicy = "off";
myTextArea.depthChild0._visible = false;//设置背景和边框为透明
//myTextArea.html = true;
//myTextArea.text = "商品房商品住宅量减价升!";
myTextArea.enabled = false;
myTextArea.setStyle("disabledColor", "0xffffff");
myTextArea.setStyle("fontSize", "14");
myTextArea.setStyle("fontFamily", "黑体");
myTextArea.setStyle("color", "0xffffff");
myTextArea.setStyle("fontWeight", "bold");

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值