# Scotty's Elastic Curved resizement keep centered help please

**URL:** <https://forum.kirupa.com/t/scottys-elastic-curved-resizement-keep-centered-help-please/242672>\
**Category:** flash\
**Created:** [October 29, 2007, 12:13pm UTC](https://forum.kirupa.com/t/scottys-elastic-curved-resizement-keep-centered-help-please/242672 "2007-10-29T12:13:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichGags](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/richgags/32/685_2.png) [@RichGags](https://forum.kirupa.com/u/RichGags)\
**Post date:** [October 29, 2007, 12:13pm UTC](https://forum.kirupa.com/t/scottys-elastic-curved-resizement-keep-centered-help-please/242672/1 "2007-10-29T12:13:24Z")

</div>

I followed the instructions for scotty’s elastic curved resizement box found here…

> **[Elastic curved resizement](https://www.kirupa.com/forum/showthread.php?t=96402)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

Is there any way to keep the box centered with a listener? I tried with this…

```auto
 sizeListener = new Object();
sizeListener.onResize = function() {
bBox._x = Stage.width/2;
bBox._y= Stage.height/2;
}
Stage.addListener(sizeListener);

```

but I get wierd results. The bBox looks like it trying to be center but the coordinates are way off, down to the lower right. Any help would be greatly appreciated 🙂  
Thanks,  
Rich
