Scaling problem: scale only below 1024*768

Hi there, im working on a project where i have to make a flash site/presentation. The guy im working for wants it so that it only scales (and still fill the browser 100%) when the resolution is lower than the file’s initial size of 1024768. So at a higher resolution like 12801024 the flash file would be 1024*768 and placed in the middle and have some space around it.

How can i do such a thing? Do i need some javascript in my html or something?

Peshay