# onResize with easing

**URL:** https://forum.kirupa.com/t/onresize-with-easing/152965
**Category:** flash
**Created:** [June 28, 2005, 1:29pm UTC](https://forum.kirupa.com/t/onresize-with-easing/152965 "2005-06-28T13:29:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imbuez](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imbuez/32/645_2.png) [@imbuez](https://forum.kirupa.com/u/imbuez)
#### Post date: [June 28, 2005, 1:29pm UTC](https://forum.kirupa.com/t/onresize-with-easing/152965/1 "2005-06-28T13:29:22Z")

</div>

Hello peeps,

I would like my movie clip to resize my ‘content’ to the stage with easing but am a little unsure where to go from here. Could anybody pls offer some advice or point me in the right dircetion please.  
Hrere is an example [http://www.nttdata.co.jp/en/index.html](http://www.nttdata.co.jp/en/index.html)  
Here is my current code

```auto
// Do not scale my movie
Stage.scaleMode = "noScale";
// Align the stage to the top right
Stage.align = "TL";
// define a function to alignobjects on stage resize
alignSite = function () {
// Align the background the middle
with (background) {
_y = Stage.height/2;
_x = Stage.width/2;
}
with (content) {
_y = Stage.height/2;
_x = Stage.width/2;
}
};
resizer = new Object ();
resizer.onResize = function () {
alignSite ();
};
Stage.addListener (resizer);
alignSite ();

```

thanks  
mart/.
