# Setting the color of multiple MCs using one Color Object

**URL:** <https://forum.kirupa.com/t/setting-the-color-of-multiple-mcs-using-one-color-object/216754>\
**Category:** flash\
**Created:** [February 20, 2007, 10:34am UTC](https://forum.kirupa.com/t/setting-the-color-of-multiple-mcs-using-one-color-object/216754 "2007-02-20T10:34:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [February 20, 2007, 10:34am UTC](https://forum.kirupa.com/t/setting-the-color-of-multiple-mcs-using-one-color-object/216754/1 "2007-02-20T10:34:08Z")

</div>

Hiya I am making a movie that has to be published to Flash Player 6 and want to set a bunch of movie clips to have the same color. Here is my function:  
[AS]  
var fillObjs\_ar:Array = [square\_mc, circle\_mc];  
function colours(array:Array, color) {  
for (i=0; i\<array.length; i++) {  
var my\_color:Color = new Color(array\*);  
my\_color.setRGB(0x+color);  
}  
}  
colours(fillObjs\_ar, FF0000);  
[/AS]  
My problem is that I get the error message:  
“Hexadecimal digits expected after 0x” referring to the 4th line of my function.  
If anyone could help me out it would be really appreciated.  
Thanks 🙂  
Schm
