Elastic curvy box

Im sure this has been done loads before but I couldnt find a tut on it:


click on case studies and the white box curves nicely.

Also can be seen here on page load as the news comes in:


If someone can show me how to do it in Actionscript it would be very much appreciated. Sorry if it has been asked about before tried searching for curve corners but didnt come up with anything.