Fit many display objects of different sizes within a boundary?
I am currently working on an AS3 where I need to fit many differently sized display objects within a rectangular boundary without them overlapping. If you take a look at this link, http://wiffiti.com/ and take note of how the speech bubbles are able to align themselves in the swf without overlapping, this is pretty much exactly what I hope to achieve.
Can someone please point me in the right direction of an algorithm (doesn't have to be AS3) or solution to be able to achieve this, or able to explain the process that I would need to implement.
Thanks.