# Client window resizing fuction problem

**URL:** <https://forum.kirupa.com/t/client-window-resizing-fuction-problem/302979>\
**Category:** Uncategorized\
**Created:** [January 11, 2010, 11:06pm UTC](https://forum.kirupa.com/t/client-window-resizing-fuction-problem/302979 "2010-01-11T23:06:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![btween](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@btween](https://forum.kirupa.com/u/btween)\
**Post date:** [January 11, 2010, 11:06pm UTC](https://forum.kirupa.com/t/client-window-resizing-fuction-problem/302979/1 "2010-01-11T23:06:36Z")

</div>

I have this snippet of code that allows the content of my stage to move along with the resizing of my browser window. It seems to work fine for the x coordinate, but when I resize the browser window vertically the movieclip doesn’t move with the browser window, and eventually disappears. Why is this working horizontally and not vertically?

sizeListener = new Object();  
sizeListener.onResize = function(){

images\_mc.\_x = Stage.width - 800;  
images\_mc.\_y = Stage.height/4

thumb1.\_x = Stage.width - 400;  
thumb1.\_y = Stage.height/4;

};

Stage.addListener(sizeListener);
