Rezise/move flash?

I was wondring how one makes a rezising thing like this
change the height of the page and notice how his content moves.

Also curious how you make a .swf witch is embedded into a html file be as wide as the page, and let the flash file know how wide it is being displayed so the content can adjust and not be stretched.