Resizing SWFs

Hello!

I know how to set up an html page that scales the flash movie to the full size of the browser window. However, I was wondering if there was a way to place a cap on the dimensions the movie may be scale to. For example, I would like a 1024x768 movie to scale down to fit a small browser window but not scale up beyond its original dimensions. Ideally, I would like to control this through the html page and not so much in the flash file itself. Does anyone have any suggestions?

Thank you!