欢迎光临
我们一直在努力

Flash MX 2004 体验之旅 6-网页设计,Flash

建站超值云服务器,限时71元/月

ctrl+enter 预览效果,组件样式是不是改变了?下面是默认的样式和刚才自定义样式的效果对比图:

Flash MX 2004 体验之旅 6-网页设计,Flash

use the _global style declaration that sets styles for all components in a document.

(使用全局样式声明对文档的所有组件设置样式)

flashmx2004的_global对象的style属性可以做到这一点:
从components面板拖n 个组件到场景,这里我用的是button,checkbox和radiobutton
三个组件,也不要给组件命名,直接在时间线上写action:


_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");
赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » Flash MX 2004 体验之旅 6-网页设计,Flash
分享到: 更多 (0)