Making my swf embed as the size of the browser

I know its possible but every time I search google what comes up is how to allow someone to go full screen. I’m trying to make it so when I publish the swf stretches across the browser window for width and height. And when the browser switches size the swf will pick that up and reduce its size as well. I did it before a couple years back but i cant remember how. Can someone plz help me.

Have you seen this?