# \[Flash8\]Help needed! (Random Color fader)

**URL:** <https://forum.kirupa.com/t/flash8-help-needed-random-color-fader/279594>\
**Category:** flash\
**Created:** [January 16, 2009, 12:00pm UTC](https://forum.kirupa.com/t/flash8-help-needed-random-color-fader/279594 "2009-01-16T12:00:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![willtaylar](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@willtaylar](https://forum.kirupa.com/u/willtaylar)\
**Post date:** [January 16, 2009, 12:00pm UTC](https://forum.kirupa.com/t/flash8-help-needed-random-color-fader/279594/1 "2009-01-16T12:00:23Z")

</div>

Can anybody help? Is it possible to introduce a fade into this script so that on rollover the new random color fades in rather than instantly switches.

on (rollOver) {

// “square” is the object being tinted  
myColor = Math.round( Math.random()\*0xFFFFFF );  
myColoredObject = new Color (\_root.square);  
myColoredObject.setRGB(myColor);

}

Have attached the .fla

I found a tutorial that does this on Kirupa ([http://www.kirupa.com/developer/flash5/randomcolor.htm](http://www.kirupa.com/developer/flash5/randomcolor.htm)) but for some reason it only works on Flash Player 6 or less. I built my menu so far - but it won´t work on Flash Player 8 so need to find another way to do it (My menu so far - in progress: [http://www.willtaylar.co.uk/test/main.htm](http://www.willtaylar.co.uk/test/main.htm))

Thank you very much for any help.  
Best - Will.
