# Transform.ColorTransform

**URL:** <https://forum.kirupa.com/t/transform-colortransform/259609>\
**Category:** Uncategorized\
**Created:** [May 7, 2008, 4:37am UTC](https://forum.kirupa.com/t/transform-colortransform/259609 "2008-05-07T04:37:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [May 7, 2008, 4:37am UTC](https://forum.kirupa.com/t/transform-colortransform/259609/1 "2008-05-07T04:37:53Z")

</div>

I have an object, when I shoot a laser at it, I want to change the color to red, delay for a second and then switch back to the normal state(no red);

so  
var redTint:Color = new Color();  
redTint.setTint(0xFF0000,1);  
myObject.transform.colorTransform = redTint;

this works fine, however when I try to reset back to it’s normal state with:

myObject.transform.colorTransform = null,

I get this message \*\*Parameter colorTransform must be non-null.

\*\*Any ideas
