# interpolateTransform

**URL:** <https://forum.kirupa.com/t/interpolatetransform/260836>\
**Category:** flash\
**Created:** [May 20, 2008, 1:05pm UTC](https://forum.kirupa.com/t/interpolatetransform/260836 "2008-05-20T13:05:36Z")\
**Posts on this page:** 3\
**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 20, 2008, 1:05pm UTC](https://forum.kirupa.com/t/interpolatetransform/260836/1 "2008-05-20T13:05:36Z")

</div>

I’m trying to ease from one color to another, is there some other way besides the interpolateTransform() function to do this?

Thanks,

---

<div class="post-metadata">

**Author:** ![Exodar](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@Exodar](https://forum.kirupa.com/u/Exodar)\
**Post date:** [May 20, 2008, 11:28pm UTC](https://forum.kirupa.com/t/interpolatetransform/260836/2 "2008-05-20T23:28:22Z")

</div>

how about using the **setTint()** method and steadily increasing the percentage of the tint color being applied?

as in (within your enter frame function),

```
 [LEFT] ActionScript Code:
[LEFT][COLOR=#808080]*// change to red*[/COLOR]

```

[COLOR=#000000] **var** [/COLOR] tintColor:uint = 0xFF0000;  
[COLOR=#808080]_// percentage to apply the tint color_[/COLOR]  
[COLOR=#000000] **var** [/COLOR] percent:[COLOR=#0000FF]Number[/COLOR] = [COLOR=#000080]0[/COLOR];

[COLOR=#000000] **var** [/COLOR] [COLOR=#0000FF]color[/COLOR]:Color = [COLOR=#000000] **new** [/COLOR] [COLOR=#0000FF]Color[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000FF]color[/COLOR].[COLOR=#000080]setTint[/COLOR]COLOR=#000000[/COLOR];  
mc.[COLOR=#000080]transform[/COLOR].[COLOR=#000080]colorTransform[/COLOR] = [COLOR=#0000FF]color[/COLOR];

[COLOR=#808080]_// then increment the percentage_[/COLOR]  
percent += [COLOR=#000080]2[/COLOR];  
[/LEFT]

[/LEFT]

---

<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 21, 2008, 12:42am UTC](https://forum.kirupa.com/t/interpolatetransform/260836/3 "2008-05-21T00:42:46Z")

</div>

■■■■, that’s sweet, good thinking, I’ll definitly try that
