Adjusting site for resolution

I want to make a flash site that will adjust itself depending on the users resolution. To explain this easier, if a user changes his screen resolution from 800600 to 1024768 the site should look exactly the same. I hope you get my point, most of todays site check users screen resolution before loading, much nicer.