# Elastic box

**URL:** <https://forum.kirupa.com/t/elastic-box/102260>\
**Category:** Uncategorized\
**Created:** [February 21, 2004, 2:22pm UTC](https://forum.kirupa.com/t/elastic-box/102260 "2004-02-21T14:22:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Craig](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@Mr\_Craig](https://forum.kirupa.com/u/Mr_Craig)\
**Post date:** [February 21, 2004, 2:22pm UTC](https://forum.kirupa.com/t/elastic-box/102260/1 "2004-02-21T14:22:15Z")

</div>

Hi

I have seen this animation trick a couple of times now… what it is, is a box - usually just an outline that expands form a small box to a large one. When it gets to its full size it retracts and then expands like its elasticated. Know what I mean? How is this done? There must be some script for it right?

Can you help?

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:** [February 21, 2004, 6:19pm UTC](https://forum.kirupa.com/t/elastic-box/102260/2 "2004-02-21T18:19:37Z")

</div>

have a look at this:  
[http://www.kirupa.com/developer/actionscript/spring.htm](http://www.kirupa.com/developer/actionscript/spring.htm)

instead of it applying to corrdinates, have it apply dimensions of the box.

---

<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:** [February 21, 2004, 6:30pm UTC](https://forum.kirupa.com/t/elastic-box/102260/3 "2004-02-21T18:30:18Z")

</div>

okay…

…but how exactly would I apply it to the dimensions of the box? Do I make the box a movie clip or what?

Cheers

Craig

---

<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:** [February 21, 2004, 7:01pm UTC](https://forum.kirupa.com/t/elastic-box/102260/4 "2004-02-21T19:01:15Z")

</div>

yes u apply to a mc,

have a look at this[link](http://www.davidchang.netfirms.com/Image_Warp.html)

i’ll work on simple example

---

<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:** [February 21, 2004, 7:08pm UTC](https://forum.kirupa.com/t/elastic-box/102260/5 "2004-02-21T19:08:27Z")

</div>

i hope this will aid u on your quest

---

<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:** [February 22, 2004, 5:16am UTC](https://forum.kirupa.com/t/elastic-box/102260/6 "2004-02-22T05:16:26Z")

</div>

What about the kind of elasticity where the corners kind of snap into place and the edges wobble until it becomes a box? Kind of a “boooooing” thing…in case boing really describes it for ya lol.

---

<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:** [February 23, 2004, 12:49am UTC](https://forum.kirupa.com/t/elastic-box/102260/7 "2004-02-23T00:49:31Z")

</div>

Wicked, thanks David the link was exactly what I meant.

I’ve had a quick look at the code you posted, thats pretty cool man. Its not exactly the elastic box which was in the link, but perhaps a few adjustments will fix this?

Cheers

---

<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:** [February 23, 2004, 1:09am UTC](https://forum.kirupa.com/t/elastic-box/102260/8 "2004-02-23T01:09:29Z")

</div>

thats hot david.

løk
