I asked around last week if anybody had suggestions for how to make an <mx:Window/> auto-size itself to its content. The general opinion was to simply override the measure() method setting width and height to the measured width and height. Never quite worked out.
So, I’ve kind of obsessed about it this evening and put together a pretty solid solution. I think you AIR folks out there will be interested in it. Very handy. Set autoWidth and/or autoHeight to true to lock that dimension to the ideal (based on the measured children).