Problem with for loop

hi there,
Following is the code I paste in the first frame of layer1…it was working before I added for loop…
I am tring to explode all six balls on the stage clicking…but what is missing ?How can I get it work ?

for (var i = 1; i<6; i++) {
ball*.onPress = function() {
ball*.gotoAndPlay(“explode”);
};
}

thanks