# Full Browser Flash Centering?

**URL:** <https://forum.kirupa.com/t/full-browser-flash-centering/208871>\
**Category:** Uncategorized\
**Created:** [December 3, 2006, 10:50pm UTC](https://forum.kirupa.com/t/full-browser-flash-centering/208871 "2006-12-03T22:50:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [December 3, 2006, 10:50pm UTC](https://forum.kirupa.com/t/full-browser-flash-centering/208871/1 "2006-12-03T22:50:26Z")

</div>

hey all,

i’m going by the tutorial “mastering Full Browser Flash” at [actionscript.com](http://actionscript.com).

and i’m having trouble getting my mc to center in the stage and browser…does anybody know how to do this?? here is the code i have on frame1:

```auto

Stage.scaleMode = "noScale";

stageListener = new Object();
stageListener.onResize = function() {
//code for response to browser resizing here...."i don't how to do resize it accordingly //stage.width *.5 mayb??
}
Stage.addListener(stageListener);
stageListener.onResize = function(){
var stageXCenter = stage.width * .5;
var stageYCenter = stage.height * .5;
}
stageListener.onResize = function(){
var stageXCenter = Stage.width * .5;
var stageYCenter = Stage.height * .5;
myClip._x = stageXCenter;
myClip._y = stageYCenter;
}

```

anybody have anyideas or tutorials that will help explain.

Cheers Peeps 🙂
