Resize SWF on Page

Hello,
I am using the javascript flash embed method from this site.
I currently have my swf set up to be 100% of the browser window.

how can i resize the embedded swf to a different size from within the flash movie?

for example, my swf fits the browser. however, if i load a movieclip that may be larger than the browser size, i want to extend the size of the swf (so that a scrollbar appears in the browser)

i am assuming i would need to make a java function on the html page, then call that somehow from the swf.

Does anyone know anything about this? or know of any tutorials?
Thanks

=)
http://www.mustardlab.com/developer/flash/objectresize/

thanks!

:thumb: