How to modify the size of Flash stage programmatically-Collection of common programming errors

If it’s a website you’re creating you can programmatically control its size via call through a class called ExternalInterface which in turn calls JavaScript-functions. JavaScript can then be used to resize the embedded flash object.

You can find another post about this here: How can I resize a swf during runtime to have the browser create html scrollbars?