I know it’s possible (and the answer must be under my nose) but I am at a loss as to how to accomplish this:
I have 5 movie clips on the stage, and their instance names are in one array. I then have an array with hexidecimals that I want to assign the colors to the movie clip. So, in essence clipArray would obtain hueArray and so on and so forth. Here is the small code snippet I am working with.
var clipArray:Array = [one_mc, two_mc, three_mc, four_mc, five_mc];
var hueArray:Array = [“0xd50000”,“0xff9000”,“0xfcff00”,“0x00c91c”,“0x0050d5”];
for (var i:int = 0; i < clipArray.length; i++)
clipArray*.buttonMode = true;
for (var j:int = 0; j < hueArray.length; j++)
I want to keep my code clean but tend to get buried in for-loops so thank you in advance to anyone who can explain my wrongdoing and set my poor code straight!!! :hugegrin: