Full Screen

I’ve read the full-screen tutorial here at kirupa.com, but that was too brief. I want to know what’s the actionscript required to do things similar to this website. You see how they aligned stuff based on the window size? What code gives you the variables of the window size?
[LIST=1]
[]menu bar stretch 100% width of screen
[
]menu bar aligned to the top of the screen
[]map aligned to bottom left
[
]logo aligned to bottom right
[/LIST]