让舞台上的btn灰掉

/*让舞台上的btn灰掉*/
var matrix:Array = new Array();
matrix = matrix.concat([.3,.59,.11,0,0]);// red
matrix = matrix.concat([.3,.59,.11,0,0]);// green
matrix = matrix.concat([.3,.59,.11,0,0]);// blue
matrix = matrix.concat([0,0,0,1,0]);// alpha 
var filter:ColorMatrixFilter = new ColorMatrixFilter(matrix);
btn.filters = [filter];
posted on 2011-03-01 15:51  602147629  阅读(208)  评论(0编辑  收藏  举报