随笔 - 8  文章 - 55  trackbacks - 0
<2024年12月>
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

常用链接

留言簿(6)

随笔分类

随笔档案

文章分类

文章档案

朋友的Blog

最新评论

阅读排行榜

评论排行榜

myBtn.setStyle("themeColor", "0x00CCFF"); myBtn.setStyle("fontFamily", "Verdana"); myBtn.setStyle("fontSize", "10"); myBtn.setStyle("fontWeight", "bold"); myBtn.setStyle("color", "0x990000"); _global.style.setStyle("themeColor", "0x00CCFF"); _global.style.setStyle("fontFamily", "Verdana"); _global.style.setStyle("fontSize", "10"); _global.style.setStyle("fontWeight", "bold"); _global.style.setStyle("color", "0x990000"); //创建一个CSSStyleDeclaration对象实例 var styleObj = new mx.styles.CSSStyleDeclaration; //设置styleName属性 styleObj.styleName = "newStyle"; //将样式放到全局样式列表 _global.styles.newStyle = styleObj; //设置样式属性 styleObj.fontFamily = "Verdana"; styleObj.fontSize = "10"; styleObj.fontWeight = "bold"; styleObj.color = "0x990000"; styleObj.setStyle("themeColor", "0x00CCFF"); //对组件设置样式 CompA.setStyle("styleName", "newStyle"); CompB.setStyle("styleName", "newStyle"); CompC.setStyle("styleName", "newStyle"); //为Button类型的组件定义样式 var btn = _global.styles.Button=new mx.styles.CSSStyleDeclaration(); btn.fontFamily = "Verdana"; btn.fontSize = "12"; btn.fontWeight = "bold"; btn.color = "0x000000"; //为CheckBox类型的组件定义样式 var cb = _global.styles.CheckBox=new mx.styles.CSSStyleDeclaration(); cb.fontFamily = "Tahoma"; cb.fontSize = "12"; cb.fontWeight = "bold"; cb.color = "0x990000"; //为RadioButton类型的组件定义样式 var rb = _global.styles.RadioButton=new mx.styles.CSSStyleDeclaration(); rb.fontFamily = "Arial"; rb.fontSize = "12"; rb.fontWeight = "bold"; rb.color = "0x003399";
posted on 2006-05-30 12:25 blog搬家了--[www.ialway.com/blog] 阅读(181) 评论(0)  编辑  收藏 所属分类: AS2.0

只有注册用户登录后才能发表评论。


网站导航: