# Smooth transition between random colors

**URL:** <https://forum.kirupa.com/t/smooth-transition-between-random-colors/44689>\
**Category:** Uncategorized\
**Created:** [March 6, 2004, 3:00pm UTC](https://forum.kirupa.com/t/smooth-transition-between-random-colors/44689 "2004-03-06T15:00:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beenetto](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@beenetto](https://forum.kirupa.com/u/beenetto)\
**Post date:** [March 6, 2004, 3:00pm UTC](https://forum.kirupa.com/t/smooth-transition-between-random-colors/44689/1 "2004-03-06T15:00:43Z")

</div>

how can I make a smooth transition between random colors?  
so far I have this done:

this is on the frame action:

myColor= new Color (\_root.box);  
\_root.b1.onRelease = function(){  
myColor.setRGB(\_global.rndColor)  
}

and this is in a movie clip which is off stage, generating a random  
value:

onClipEvent (enterFrame) {  
\_global.rndColor=Math.round(Math.random()\*0xffffff);

}

There is a nice one in the tutorials, but I’m not able to use it for some reason. Maybe because it is not for MX 2004.

can anybody help?
