# Reposition contents on browser resize

**URL:** <https://forum.kirupa.com/t/reposition-contents-on-browser-resize/200680>\
**Category:** Uncategorized\
**Created:** [September 14, 2006, 6:52am UTC](https://forum.kirupa.com/t/reposition-contents-on-browser-resize/200680 "2006-09-14T06:52:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![layer](https://avatars.discourse-cdn.com/v4/letter/l/9dc877/32.png) [@layer](https://forum.kirupa.com/u/layer)\
**Post date:** [September 14, 2006, 6:52am UTC](https://forum.kirupa.com/t/reposition-contents-on-browser-resize/200680/1 "2006-09-14T06:52:23Z")

</div>

i.m attempting to reposition the contents of my swf on the resize of browser window with a tween class - the contents are situated around the perimeter of movie.  
how would i go make the adjustment here

tage.align = “TL”;  
Stage.scaleMode = “noScale”;  
Stage.addListener(dash);

dash.onResize = function()  
{  
this.\_x += ((Stage.width/2)-this.\_x)/5;  
this.\_y += ((Stage.height/2)-this.\_y)/5;  
}

[http://www.rigsbydesign.com](http://www.rigsbydesign.com)  
[http://www.dunwoodie-architectureand](http://www.dunwoodie-architectureand)…co.uk/main.php

anyone have a working example?
