# Stage Resize + Math

**URL:** <https://forum.kirupa.com/t/stage-resize-math/306053>\
**Category:** flash\
**Created:** [March 9, 2010, 12:18am UTC](https://forum.kirupa.com/t/stage-resize-math/306053 "2010-03-09T00:18:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alemieux34](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@alemieux34](https://forum.kirupa.com/u/alemieux34)\
**Post date:** [March 9, 2010, 12:18am UTC](https://forum.kirupa.com/t/stage-resize-math/306053/1 "2010-03-09T00:18:40Z")

</div>

I’ve got a Movie Clip on the bottom of my stage that’s being positioned on Stage Resize:

```auto
drawer_mc.y = sh - drawer_mc.height + 120;

```

It has a button on it that, when clicked, will change the Y position so that it opens up to reveal control options inside.

I can’t figure out the math to open this item up and keep it at the bottom of the stage in case someone resizes the stage. Right now this is working:

```auto
drawerTY = new Tween(drawer_mc, "y", Regular.easeIn, drawerMCy, drawerMCy - 30, .5, true);

```

drawerMCy - 30 does the trick, but if you keep clicking the button, it keeps moving up the screen 30 pixels at-a-time.

Any suggestions?
