Im using the following code from a tutorial to change the color of a movieclip called face, which works fine. But i cant figure out how to apply the following function to duplicate movieclips. I have been struggling with this for ages now. Any help would be super.
for (i=0; i<5; i++){
var mcFace = face.duplicateMovieClip(“newclip_face”+i,i);
faceArray.unshift(‘newclip_face’ + i);
mcFace._x = random(500);
mcFace._y= random(500);
}
for (i=0; i<faceArray.length; i++ ){
colorSeletction = [0x006699, 0x660000, 0x006666, 0x669900];
colorTween = 0;
tweenSpeed = .05;
faceColor = new Color(face*);
face*.onEnterFrame = function(){
colorTween += tweenSpeed;
if (colorTween > 1){
colorTween--;
colorSeletction.push(colorSeletction.shift());
}else if (colorTween < 0){
colorTween++;
colorSeletction.unshift(colorSeletction.pop());
}
faceColor.blendRGB(colorSeletction[0], colorSeletction[1], colorTween);
};
}