AS for full screen

Made first full screen flash. However, container_mc doesnt move to center until window is resized (draged with cursor or minimized then reopened) thus if end user never resizes it container_mc is always half way out of the window. Here is my AS can anyone tell me what I am doing wrong pleeeeeeeeeeeeeeeeease with a pretty in front of that please:


import flash.display.BitmapData;
container._x = (Stage.width / 2) - (container._width / 2);
container._y = (Stage.height / 2) - (container._height / 2);

var tile:BitmapData = BitmapData.loadBitmap("tile");
function fillBG() {
 this.beginBitmapFill(tile);
 this.moveTo(0,0);
 this.lineTo(Stage.width,0);
 this.lineTo(Stage.width,Stage.height);
 this.lineTo(0,Stage.height);
 this.lineTo(0,0);
 this.endFill();
}
fillBG();
var stageL:Object = new Object();
stageL.onResize = function() {
 fillBG();
 container._x = (Stage.width / 2) - (container._width / 2);
 container._y = (Stage.height / 2) - (container._height / 2);
}
stageL.onResize();
Stage.addListener(stageL);
 

Thanks in advance yall. I really appreciate it.
MT