can we make array of movieclip and use as onrelease function
var gold:Array = [g1,g2,g3,g4,g5,g6,g7,g8,g9,g10,g11,g12,g13,g14,g15,g16,g17,g18,g19,g20];
and
gold.onRelease=function(){
if(gold._visible==1){
this.gotoAndStop(2);
updateScore(500);
this.enabled=false;
}
}