קוד:
this.beginFill(color[i], 80);
this.endFill();
קוד:
t.onRelease = function() {
if (i == color.length-1) {
i = 0;
} else {
i++;
}
this.beginFill(color[i], 80);
this.endFill();
glower();
};
קוד:
var color:Array = new Array(0x000000, 0xFFFFFF, 0xFECE5F, 0xD50000, 0x2450FD);
var i:Number = 0;
glower = function () {
var glow = new GlowFilter(color[i], 0.8, 20, 20, 1, 3, true, false);
var glow2 = new GlowFilter(color[i], 0.8, 15, 15, 2, 3, false, false);
t.filters = [glow, glow2];
};