# Stage resize with easing

**URL:** <https://forum.kirupa.com/t/stage-resize-with-easing/163442>\
**Category:** Uncategorized\
**Created:** [September 22, 2005, 2:09pm UTC](https://forum.kirupa.com/t/stage-resize-with-easing/163442 "2005-09-22T14:09:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjvalles](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@jjvalles](https://forum.kirupa.com/u/jjvalles)\
**Post date:** [September 22, 2005, 2:09pm UTC](https://forum.kirupa.com/t/stage-resize-with-easing/163442/1 "2005-09-22T14:09:44Z")

</div>

here is an example of what i am trying to do… I have been stuck for a while tring to create an ease on a mc when the browser is resized… here is an example…

][http://www.dunwoodie-architectureanddesign.co.uk/main.php](http://www.dunwoodie-architectureanddesign.co.uk/main.php)

[URL=http://www.dunwoodie-architectureanddesign.co.uk/main.php

here is my code… How would i ease/bounce on my mc “main”… maybe using laco’s custm tween when the browser is resized?

Stage.align = “LT”;  
// prevent the Flash movie from resizing when the browser window changes size.  
Stage.scaleMode = “noScale”;

// create a listener object  
stageListener = new Object();  
// add a methods for it to do certain things when the Stage is resized by our user  
stageListener.onResize = function() {

expandTop();  
expandBodyText();  
}

Stage.addListener(stageListener);

expandTop = function() {

// expand the top banner/header/masthead - whatever you want to call it - to be as wide as the stage

bottom.\_y = Stage.height - bottom.\_height - 0;

main.\_y = Stage.height/2;  
main.\_x = Stage.width/2;

};

stageListener.onResize();
