# Algorithm multiple boxes fitting together

**URL:** <https://forum.kirupa.com/t/algorithm-multiple-boxes-fitting-together/267381>\
**Category:** flash\
**Created:** [July 31, 2008, 1:07pm UTC](https://forum.kirupa.com/t/algorithm-multiple-boxes-fitting-together/267381 "2008-07-31T13:07:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalic](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@digitalic](https://forum.kirupa.com/u/digitalic)\
**Post date:** [July 31, 2008, 1:07pm UTC](https://forum.kirupa.com/t/algorithm-multiple-boxes-fitting-together/267381/1 "2008-07-31T13:07:06Z")

</div>

Hi everbody,  
I’m trying to do an AS3 info-visualization like TED’s one with his news boxes: [http://www.ted.com/](http://www.ted.com/)

All the problem is to make multiple boxes, with different width and height, fit perfectly into a constraint space…

I tried to adapt jared tarbell processing code at [http://www.complexification.net/gallery/machines/boxFitting/](http://www.complexification.net/gallery/machines/boxFitting/)

His algorithm make one box growing until it touches an other box: he is using a getPixel method to look for a box collision, which is incompatible with a vector rendering in flash…

Any one has an idea to make such a thing in AS3 ???
