I’ve got a Movie Clip on the bottom of my stage that’s being positioned on Stage Resize:
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:
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?