让舞台上的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];