Tiling a background with 100% SWF

I am using this code to create a tiled background on a site I’m working on.

tileBG = function () {

tile_width = 128;
tile_height = 128;
//
x_max = Math.round(Stage.width/tile_width);
y_max = Math.round(Stage.height/tile_height);
trace(x_max);
trace(y_max);
for (x=0; x<=x_max; x++) {

for (y=0; y<=y_max; y++) {

bg = _root.attachMovie(“square”, “bg”+x+y, this.getNextHighestDepth());
bg._x = tile_widthx;
bg._y = tile_height
y;

}

}

};
tileBG();

It works great, but because I’m publishing my SWF with noScale at 100% width and height, the background doesnt fill the whole swf, only the size of the actual stage in the FLA. Is there any way I can change this so It will fit accordingly?
Thanks
Jamie