Creating a grid in code

Recently someone posted me this code:
MovieClip.prototype.drawCircle = function(r,x,y) {
this.moveTo(x+r, y);
a=Math.tan(22.5Math.PI/180);
for (var angle = 45; angle<=360; angle +=45){
var endx = r
Math.cos(angle&Math.PI/180);
var endy = rMath.sin(angle&Math.PI/180);
var cx = endx+r
aMath.cos((angle-90)Math.PI/180);
var cy = endy+r
a
Math.sin((angle-90)*Math.PI/180);
this.curveTo(cx+x, cy+y, endx+x, endy+y);
}
};
circles_mc = _root.createEmptyMovieClip(“circles_mc”, 0);

circles_mc._x = 0;
circles_mc._y = 0;

for (var i=0; i <144; i++) {
c_mc = _root.circles_mc.createEmptyMovieClip(“c”+i+"_mc", i);
c_mc.beginFill(“0x000000”, 100);
c_mc.lineStyle(0, “0x000000”, 100);
c_mc.drawCircle(2.5, 3.75, 3.75);
c_mc.endFill();

c_mc._x = i*7.5;
c_mc._y = 0;
while (c_mc._x &gt;82.5) {
	c_mc._x -= 90;
	c_mc._y += 7.5;
}

}

it works, but I want to

  1. change the diameter of the circle to 5px
  2. change the spacing so that there is a 2px gap between each circle
  3. make it 100 circles wide x 100 circles high

Please help!

p.s. apologies to the person who originally poste the above code - I can’t find the original thread!