Grid fun

Hi,

I am trying to make a map made up of lots of little dots. With the code below I create a grid of dots and then mask it with a vector world map. This actually works but sends my cpu to 100%, is there a better way to do this?


numItems = 5500;
numColumns = 100;
cnt = 1;
startX = startY=0;
padding = 1;
_root.setMask(_root.map);
for (var i = 0; i<numItems; i++) {
    this.attachMovie("dot", "dot"+i, i, {_x:startX, _y:startY});
    startX = (cnt%numColumns == 0) ? 0 : startX+this["dot"+i]._width+padding;
    startY = (cnt%numColumns == 0) ? startY+this["dot"+i]._height+padding : startY;
    cnt++;
}