I made this function to color buttons as you click on them, but I need to be able to remove the color transform later. I tried:
this.btn1.transform.colorTransform = null;
but it says it can't be "null".
PHP Code:
function colorBtn(c, b) {
var colorTransform:ColorTransform = this["btn"+b].transform.colorTransform;
colorTransform.color = c;
this["btn"+b].transform.colorTransform = colorTransform;
}