# Change saturation movieclip via actionscriptor color matrix?

**URL:** <https://forum.kirupa.com/t/change-saturation-movieclip-via-actionscriptor-color-matrix/209621>\
**Category:** flash\
**Created:** [December 10, 2006, 11:47pm UTC](https://forum.kirupa.com/t/change-saturation-movieclip-via-actionscriptor-color-matrix/209621 "2006-12-10T23:47:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![artist1204](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@artist1204](https://forum.kirupa.com/u/artist1204)\
**Post date:** [December 10, 2006, 11:47pm UTC](https://forum.kirupa.com/t/change-saturation-movieclip-via-actionscriptor-color-matrix/209621/1 "2006-12-10T23:47:05Z")

</div>

hi,

i was reading the help and discovered i can change the filters thru as, but can’t seem to figure out how to change the saturation.

I want my image to be black and white and go back to color upon rollover.  
i have done it with a separate bw image but i think, at least, that it would reduce my file size by doing it with actionscript. is that true?

this is the code in help:

```auto
var myFilters = fl.getDocumentDOM().getFilters();
for(i=0; i < myFilters.length; i++){
    if(myFilters*.name == 'adjustColorFilter'){
        myFilters*.saturation = 0;
    }
}
fl.getDocumentDOM().setFilters(myFilters);

```

doesn’t work when set on mc.  
don’t know where to insert my movie clip name???  
do i need to do the color matrix? which is even more confusing.  
is this the right code to use? or is there something simpler?  
thanks  
hope all is well
