# Colour change

**URL:** https://forum.kirupa.com/t/colour-change/185023
**Category:** Uncategorized
**Created:** [April 10, 2006, 11:37am UTC](https://forum.kirupa.com/t/colour-change/185023 "2006-04-10T11:37:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tonks](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@tonks](https://forum.kirupa.com/u/tonks)
#### Post date: [April 10, 2006, 11:37am UTC](https://forum.kirupa.com/t/colour-change/185023/1 "2006-04-10T11:37:22Z")

</div>

Hi,  
I found the tutorial on changing colour using actionscript.  
[http://www.kirupa.com/developer/actionscript/color.htm](http://www.kirupa.com/developer/actionscript/color.htm)  
But is it possible to make the colour transitions fade into each other smoothly rather than just a hard change?  
Hope sopmeone can help.  
Thanks…

---

<div class="post-metadata">

### Author: ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)
#### Post date: [April 11, 2006, 12:06am UTC](https://forum.kirupa.com/t/colour-change/185023/2 "2006-04-11T00:06:11Z")

</div>

yes…u can put color editing code in an onEnterFrame and increment the R, G and B and alpha values…like colorTransform.ra += 2 (so every frame the red component will get 2 added to its value)

investigate the color Transform object in the flash help file.

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [April 11, 2006, 1:33am UTC](https://forum.kirupa.com/t/colour-change/185023/3 "2006-04-11T01:33:27Z")

</div>

'Cept in Flash 7 it will just be the Color class 😉

---

<div class="post-metadata">

### Author: ![matthewjumps](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@matthewjumps](https://forum.kirupa.com/u/matthewjumps)
#### Post date: [April 11, 2006, 1:40am UTC](https://forum.kirupa.com/t/colour-change/185023/4 "2006-04-11T01:40:58Z")

</div>

sorry yea - the color class with setTransform applied.
