xin's blog

Just have a little faith.
  首页  :: 管理

更改DisplayObject的矩阵属性,颜色,像素

Posted on 2009-08-26 09:12  greatxin  阅读(223)  评论(0)    收藏  举报
DisplayObject有属性tranform,可以动态设置DisplayObject显示对象的矩阵、颜色转换和像素,比如
var colorTransform:ColorTransform = new ColorTransform();
colorTransform.color = 0xff6600;
myDisplayObject.transform.colorTransform = colorTransform;