# Changing the color of an \_mc using actionscript

**URL:** <https://forum.kirupa.com/t/changing-the-color-of-an--mc-using-actionscript/150016>\
**Category:** Uncategorized\
**Created:** [June 3, 2005, 12:02am UTC](https://forum.kirupa.com/t/changing-the-color-of-an--mc-using-actionscript/150016 "2005-06-03T00:02:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unreFINEdARTist](https://avatars.discourse-cdn.com/v4/letter/u/34f0e0/32.png) [@unreFINEdARTist](https://forum.kirupa.com/u/unreFINEdARTist)\
**Post date:** [June 3, 2005, 12:02am UTC](https://forum.kirupa.com/t/changing-the-color-of-an--mc-using-actionscript/150016/1 "2005-06-03T00:02:09Z")

</div>

how would I alter this AS to make the mc change color, the advanced portion of the color setting looks like this, R = (100% x R) + 163, when I get the mc to the right shade… heres the AS

```auto

on(rollOver, dragOver){
    fade = "out";
}
on(rollOut, dragOut){
    fade = "in";
}
on(release) {      
    this.onEnterFrame = function() {
         if (_level10._alpha > 0) {
             _level10._alpha -= fade_speed;    
         } else { 
             delete this.onEnterFrame;
             _level10._alpha = 0;
             loadMovieNum("tour.swf","10");
             }
    }
}
onClipEvent(enterFrame){
     if(fade == "in"){
        this._alpha += 30;//or however fast you want it to fade...
        if(this._alpha >= 100){
            delete fade;
        }
     }
     if(fade == "out"){
         this._alpha -=30;
          if(this._alpha <= 70){
           delete fade;
          }
      }
}

```

any help would be great, thanks.
