# About color

**URL:** https://forum.kirupa.com/t/about-color/275004
**Category:** flash
**Created:** [November 7, 2008, 5:46pm UTC](https://forum.kirupa.com/t/about-color/275004 "2008-11-07T17:46:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cosianfiro](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@cosianfiro](https://forum.kirupa.com/u/cosianfiro)
#### Post date: [November 7, 2008, 5:46pm UTC](https://forum.kirupa.com/t/about-color/275004/1 "2008-11-07T17:46:28Z")

</div>

Hi, I have this code and im triying to make a simple RollOver. A mc in b/n by default and when the mouse is Over the mc, it turns in color.  
Plz help me.

Thx.

```auto
import flash.filters.ColorMatrixFilter;

var byn_array:Array = [0.3, 0.59, 0.11, 0, 0,
                               0.3, 0.59, 0.11, 0, 0, 
                               0.3, 0.59, 0.11, 0, 0,
                               0, 0, 0, 1, 0];

var colorFilter:ColorMatrixFilter = new ColorMatrixFilter(byn_array);

img_mc.onPress = function()
{
   img_mc.filters = [colorFilter];
}
img_mc.onRelease = function()
{
   img_mc.filters = undefined;
}

```
