# Get tint color from MC

**URL:** https://forum.kirupa.com/t/get-tint-color-from-mc/239153
**Category:** Uncategorized
**Created:** [September 19, 2007, 3:10am UTC](https://forum.kirupa.com/t/get-tint-color-from-mc/239153 "2007-09-19T03:10:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bilderbach](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@bilderbach](https://forum.kirupa.com/u/bilderbach)
#### Post date: [September 19, 2007, 3:10am UTC](https://forum.kirupa.com/t/get-tint-color-from-mc/239153/1 "2007-09-19T03:10:12Z")

</div>

I am tinting some MC items in my application using:

```auto
 
Color.prototype.setTint = function (r, g, b, amount) {
 var trans = new Object();
 trans.ra = trans.ga = trans.ba = 100 - amount;
 var ratio = amount / 100;
 trans.rb = r * ratio;
 trans.gb = g * ratio;
 trans.bb = b * ratio;
 this.setTransform(trans);
}

```

When I rollover some of these MC I am adding a glow using:

```auto

  var gf:GlowFilter = new GlowFilter(globalColor2, 100, 100, 100, 5, 3, false, false); 
  topLeft_mc.filters = [gf]; 

```

The tint colors of the MC can be different at different states and I would like the glow to work off color the MC is tinted.

**How do I get the color I tinted the MC from the MC so I dont have to hardcode or track it?**

Thanks for your help in advance!  
GBY,  
-R
