skip to main | skip to sidebar
学AS3的那些破事

2008年9月25日星期四

一个很好玩的颜色代码:

var setBtnColor:ColorTransform=new ColorTransform();


在调用函数里写:
setBtnColor.color=0x123456;
selectColor.transform.colorTransform=setBtnColor;
就可以改变名为selectColor
当然,你把0x123456换成一个变量
就可以动态改变颜色
发帖者 telephone 时间: 02:29
标签: AS3

没有评论:

发表评论

较新的博文 较早的博文 主页
订阅: 博文评论 (Atom)

博客归档

  • ▼  2008 (34)
    • ►  十月 (5)
    • ▼  九月 (18)
      • 《making things move》笔记(第四章)(3)(有小结公式)
      • [千斤顶]一天一个类
      • 《making things move》笔记(第四章)(2)
      • 《making things move》笔记(第四章)(1)
      • 这两天一直困在颜色的问题里
      • 关于取色器
      • AS3一些网摘 关于SETTER/GETTER
      • 一个很好玩的颜色代码:
      • 卡在颜色这里了
      • 《making things move》笔记(第三章)(2)
      • 《making things move》笔记(第三章)(1)
      • 《making things move》笔记(第一、二章)
      • Flex登陆框实例
      • 生成验证码代码
      • 完全手册 FLEX3.0 RIA开发详解 笔记1
      • Flex builder3 序列号生成器
      • 变成FLEX啦
      • 创建BitmapData对象
    • ►  八月 (5)
    • ►  七月 (6)

我的简介

我的照片
telephone
查看我的完整个人资料