# Help to Resize and move a box with Actionscript please

**URL:** <https://forum.kirupa.com/t/help-to-resize-and-move-a-box-with-actionscript-please/240027>\
**Category:** flash\
**Created:** [September 28, 2007, 12:16pm UTC](https://forum.kirupa.com/t/help-to-resize-and-move-a-box-with-actionscript-please/240027 "2007-09-28T12:16:13Z")\
**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:** [September 28, 2007, 12:16pm UTC](https://forum.kirupa.com/t/help-to-resize-and-move-a-box-with-actionscript-please/240027/1 "2007-09-28T12:16:13Z")

</div>

Hi! Id like to make a semi-transparent box with Actionscript move around the stage and resize when you click a button with actionscript. Id like it to fade in and move upon opening, then move and resize depending on the button you push. Ive attached a sample of what Id like it to look like.

Im thinking Id like it to be a function like…

```auto
MovieClip.prototype.backBox = function (boxHeight, boxWidth ,NewPosX, NewPosY)

```

so I can call it from a button instance something like …

```auto
MenuNav.b1.onRelease = function ()
{
    backBox(300, 400, 100, 100);
};

```

This is going to be the background box for my pages. I assume it will have to have something in there that remembers the old position, and size and gradually resizes it and moves it to a new position. But youre the experts 🙂

TIA,  
Rich
