# Easing of mcs on browser window resize

**URL:** <https://forum.kirupa.com/t/easing-of-mcs-on-browser-window-resize/201128>\
**Category:** Uncategorized\
**Created:** [September 18, 2006, 8:14pm UTC](https://forum.kirupa.com/t/easing-of-mcs-on-browser-window-resize/201128 "2006-09-18T20:14:31Z")\
**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 18, 2006, 8:14pm UTC](https://forum.kirupa.com/t/easing-of-mcs-on-browser-window-resize/201128/1 "2006-09-18T20:14:31Z")

</div>

i.m attempting to move the contents of full browser flash with easing on resize

the problem i.m having is establishing a relationship between the stage.width /height with mc, in such a way that mc moves with easing from its natural position - NOT THE CENTER

how would i work this - so any mc i place on stage will move with easing to its next position in relation to browser window resize

can someone provide a working example?

dash.\_x = Stage.width ;  
dash.\_y = Stage.height ;

var obj:Object = new Object();  
obj.onResize = function() {

new mx.transitions.Tween(dash, “\_x”, mx.transitions.easing.Regular.easeOut, ,(Stage.width), 1, true);  
new mx.transitions.Tween(dash, “\_y”, mx.transitions.easing.Regular.easeOut, ,(Stage.height), 1, true);  
}  
Stage.addListener(obj);
