# Tint change

**URL:** https://forum.kirupa.com/t/tint-change/148919
**Category:** flash
**Created:** [May 24, 2005, 4:50pm UTC](https://forum.kirupa.com/t/tint-change/148919 "2005-05-24T16:50:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![colinmoody](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@colinmoody](https://forum.kirupa.com/u/colinmoody)
#### Post date: [May 24, 2005, 4:50pm UTC](https://forum.kirupa.com/t/tint-change/148919/1 "2005-05-24T16:50:27Z")

</div>

hi all

I’m currently trying to use actionscript to change the colour of an MC on the rollover of a button - I’ve succesfully used the following script to change scale and alpha but I’m thrown as to to how to add the colour change:

onClipEvent (load) {  
\_root .adSubXscale = 100;  
\_root .adSubYscale = 100;  
\_root .adSubAlpha = 100;  
}  
onClipEvent (enterFrame) {  
cXscale = this .\_xscale ;  
cYscale = this .\_yscale ;  
cAlpha = this .\_alpha ;  
difXscale = cXscale- \_root .adSubXscale;  
difYscale = cYscale- \_root .adSubYscale;  
difAlpha = cAlpha- \_root .adSubAlpha;  
setProperty (this ,\_xscale , cXscale-(difXscale/3));  
setProperty (this ,\_yscale , cYscale-(difYscale/3));  
setProperty (this ,\_alpha , cAlpha-(difAlpha/6));  
}

please can someone explain how to add some script for colour ? I’ve looked at setRGB and Transform but I can’t work out how to implement it with a button.

many thanks

colin
