Auto-Resizing and Centering Content in AS2

Hello all,

I just wonder if it is possible to auto-resizeand center content to match browser by using AS2? I just viewed a tutorial on this site but it’s in AS3.

There’s another way around that I know which is to set the size as 100% for both hight and width in publish setting. But when I shrink the browser from left to right, the flash become smaller in same proportion, which is not what I want. I expect it just resize horizontally.

Thank you in advance.

Cheers!