Elastic curvy box

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

[color=#22229c]http://www.spacefx.co.uk/spacefx.htm[/color]

click on case studies and the white box curves nicely.

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

http://www.mercuriocinematografica.it/gfx/main_en.php

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.

Thanks