# ColorTransform and Button events

**URL:** <https://forum.kirupa.com/t/colortransform-and-button-events/231340>\
**Category:** flash\
**Created:** [July 3, 2007, 10:29pm UTC](https://forum.kirupa.com/t/colortransform-and-button-events/231340 "2007-07-03T22:29:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [July 3, 2007, 10:29pm UTC](https://forum.kirupa.com/t/colortransform-and-button-events/231340/1 "2007-07-03T22:29:20Z")

</div>

If I create a button class, and colorize an mc within the button using The ColorTransform and Transform classes - why do the button events undo the transformation?

```auto

var	__colorTrans:ColorTransform = new ColorTransform();
var	__Transform:Transform = new Transform(myClip);
var __colorTrans.rgb = 0xFFFFFF;
var	__Transform.colorTransform =__ colorTrans;

```
