# Square Box Resize/Grow

**URL:** <https://forum.kirupa.com/t/square-box-resize-grow/63471>\
**Category:** flash\
**Created:** [September 7, 2004, 7:49am UTC](https://forum.kirupa.com/t/square-box-resize-grow/63471 "2004-09-07T07:49:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![audible\_melody](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@audible\_melody](https://forum.kirupa.com/u/audible_melody)\
**Post date:** [September 7, 2004, 7:49am UTC](https://forum.kirupa.com/t/square-box-resize-grow/63471/1 "2004-09-07T07:49:34Z")

</div>

How would I do this: [http://www.iownthesky.com/](http://www.iownthesky.com/) if you click on for example the “Portfolio” link and then “Print” the display boxes seem to resize/grow with a little bouncy effect?

If anyway can replicate at least on square for me, I would be really really greatful thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 8:43am UTC](https://forum.kirupa.com/t/square-box-resize-grow/63471/2 "2004-09-07T08:43:52Z")

</div>

i cant do the coding for you but here is how it will work.

make a square using the tools. put shadow etc if you want.

convert it into a movieclip movSquare. put it off stage or make it invisible.

now on click/release, place the movSquare like  
\_x=100, \_y =100; and set the dimensions to minimum like \_width=3 and \_height=1;

then in a framed loop (example gotoandplay(2)😉  
keep increasing the width and height and decreasing the x and y.

this will make your normal growing square.

do some experimentation for the bounce effect.

hope this helps

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 9:09am UTC](https://forum.kirupa.com/t/square-box-resize-grow/63471/3 "2004-09-07T09:09:06Z")

</div>

It does help - however I am new to actionscript and couldn’t implement the code from what you have given me, I only know basic action-script. Thanks though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 11:27am UTC](https://forum.kirupa.com/t/square-box-resize-grow/63471/4 "2004-09-07T11:27:39Z")

</div>

why don’t you try to animate it? … simple tweens
