# Still a problem with Full flash

**URL:** https://forum.kirupa.com/t/still-a-problem-with-full-flash/197497
**Category:** flash
**Created:** [August 16, 2006, 8:56pm UTC](https://forum.kirupa.com/t/still-a-problem-with-full-flash/197497 "2006-08-16T20:56:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)
#### Post date: [August 16, 2006, 8:56pm UTC](https://forum.kirupa.com/t/still-a-problem-with-full-flash/197497/1 "2006-08-16T20:56:10Z")

</div>

I have looked at threads if I didnt see the one that will help please post. Having trouble having a container\_mc center on stage correctly. I followed goto’s tutorial and cant get the container\_mc to center correctly. Also upon opening the window it doesnt seem to size right until you readjust the window then it will move to different location but still not in the center. Here is my AS:

```auto

import flash.display.BitmapData;
container._x = Stage.width / 2;
container._y = Stage.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._y = Stage.height / 2;
}
Stage.addListener(stageL);

```

I have also tried adding  
container.\_x = (Stage.width / 2) - Stage.width / 2 ;  
container.\_y = (Stage.height / 2) - Stage.height / 2;

but still it doesnt funtion right. Help… thanks in advance MT
