I have this code on frame 1
clip = [middle, bottom, menu, menuarrow, menutext,];
colour = [];
function newcolor(clip, colour) {
MCColor = new Color(clip);
MCColor.setRGB(colour);
}
And this on a button
on (release) {
colour =['0xCCA68C', '0x663300', '0x996633', '0x996633','0xCCA68C'];
for (i=0, j=0; i<9, j<9; i++, j++) {
newcolor(clip, colour[j]);
}
}
What this does is sets each clip to a colour (this works).
I also have a 'texts' array
texts = [tc1, tc2, audio1, js1, js2];
I would like to add an array element to the 'clips' array that would represent all the elements in 'texts'.
I would like to add one colour to the 'colours' array, so that all the elements of 'texts' would be changed to that one colour.
How can I do this? (although it can't be seen here, I do need i AND j in the loop)
clip = [middle, bottom, menu, menuarrow, menutext,];
colour = [];
function newcolor(clip, colour) {
MCColor = new Color(clip);
MCColor.setRGB(colour);
}
And this on a button
on (release) {
colour =['0xCCA68C', '0x663300', '0x996633', '0x996633','0xCCA68C'];
for (i=0, j=0; i<9, j<9; i++, j++) {
newcolor(clip, colour[j]);
}
}
What this does is sets each clip to a colour (this works).
I also have a 'texts' array
texts = [tc1, tc2, audio1, js1, js2];
I would like to add an array element to the 'clips' array that would represent all the elements in 'texts'.
I would like to add one colour to the 'colours' array, so that all the elements of 'texts' would be changed to that one colour.
How can I do this? (although it can't be seen here, I do need i AND j in the loop)