# Color Matrix Help AS2

**URL:** https://forum.kirupa.com/t/color-matrix-help-as2/317619
**Category:** flash
**Created:** [December 27, 2010, 6:38pm UTC](https://forum.kirupa.com/t/color-matrix-help-as2/317619 "2010-12-27T18:38:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mattfaulk](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mattfaulk](https://forum.kirupa.com/u/mattfaulk)
#### Post date: [December 27, 2010, 6:38pm UTC](https://forum.kirupa.com/t/color-matrix-help-as2/317619/1 "2010-12-27T18:38:04Z")

</div>

Hello everyone,

I am trying to change the color of an image within a MC using color matrix.

What I want to do is adjust he hue, saturation, contrast, and brightness so I can create a realistic color change without affecting shadows when you click on a color box. I have played with the filters within the application and can achieve it but want to do so with actionscript.

**Ok, so on each button I have a code similar to…**

_on (release){  
\_root.page = “color2”;  
\_root.myClickedBtnFunction();  
}_

**Then within the primary timeline I have if then’s under the myClickedBtnFunction to the effect of…**

- if (\_root.btn==“color2”){  
code will go here…  
}\*

Can someone please help me out? Here is a link to the file I am trying to apply the effect to… [http://basicbrandstudios.com/clients/cleatskins/flashtest/golfskin-mens.html](http://basicbrandstudios.com/clients/cleatskins/flashtest/golfskin-mens.html)
