Mike,
All my squares need to be the same size - so for example what's the best way of laying out 'n' equal squares in an areas x,y so the squares are as big as they can be. There must be an algo for this kind of thing.
I might be being a little stupid, but since it's a square, and since width x height = height x width, why not just:
// Calculate max area of each square var area:Number = Math.floor((x * y) / n); // Calculate side length from area var sideLength:Number = Math.sqrt(area); PS. It is Monday, so forgive me if the above doesn't work. -- Steve Webster Head of Development Featurecreep Ltd. http://www.featurecreep.com 14 Orchard Street, Bristol, BS1 5EH 0117 905 5047 _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

