prova così
codice:
on (release) {
_root.gotoAndStop("art01");
for (i=1;i<12;i++){
my_color = new Color(this["button"+i]);
my_color.setRGB(0xffffff);
this["button"+i].enabled = 1;
trace(i);
}
my_color = new Color(this.button1);
my_color.setRGB(0x33cc00);
}
anche se forse (non ricordo bene
) l'assegnazione di un Color può essere fatta ad un solo clip, quindi se quello di sopra non và potresti provare
codice:
on (release) {
_root.gotoAndStop("art01");
for (i=1;i<12;i++){
this["my_color"+i] = new Color(this["button"+i]);
this["my_color"+i].setRGB(0xffffff);
this["button"+i].enabled = 1;
trace(i);
}
my_color = new Color(this.button1);
my_color.setRGB(0x33cc00);
}