# Resizing issues

**URL:** <https://forum.kirupa.com/t/resizing-issues/253563>\
**Category:** flash\
**Created:** [March 3, 2008, 2:42am UTC](https://forum.kirupa.com/t/resizing-issues/253563 "2008-03-03T02:42:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![p\_ziity](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@p\_ziity](https://forum.kirupa.com/u/p_ziity)\
**Post date:** [March 3, 2008, 2:42am UTC](https://forum.kirupa.com/t/resizing-issues/253563/1 "2008-03-03T02:42:24Z")

</div>

Hello Action Scripter better then thou,

I’m running a function that adjust the position of a movie “index\_mc” to the bottom left of the browser. Then I have another script that moves this “index\_mc” into the center but when the browser is resized it goes back to the bottom left. How should the if statement look so that it stays in the center even if the browser is resized?

here is a sample of my script

```auto
 var stageResizeListener:Object = new Object();
stageResizeListener.onResize = function() {

index_mc = (Stage.width+-750)/2;

};
Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.addListener(stageResizeListener);
Stage.addListener(sizeListener);

```
