Random Colors

Hi, I’m trying to transform the color of a movieclip, the movie clip is duplicate in more and those move from the center of the screen to the sides. I want some colors specifics those i drop inside a var but i don’t know how to make the random take those colors.

I’m used this code


[SIZE=2]var colorInfo:ColorTransform = rectangle.transform.colorTransform;
var colors:Array=new Array(0x790029,0xFF3951,0x600027,0xA3D512,0x00BEF5,0xFFF400);
colorInfo.color = 0xffffff * Math.random();
rectangle.transform.colorTransform = colorInfo;
addChildAt(rectangle,0);
rectangle.blendMode="multiply";[/SIZE]