# Auto-Resizing and Centering Content in AS2

**URL:** <https://forum.kirupa.com/t/auto-resizing-and-centering-content-in-as2/281396>\
**Category:** flash\
**Created:** [February 8, 2009, 11:41pm UTC](https://forum.kirupa.com/t/auto-resizing-and-centering-content-in-as2/281396 "2009-02-08T23:41:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wujing05](https://avatars.discourse-cdn.com/v4/letter/w/5f8ce5/32.png) [@wujing05](https://forum.kirupa.com/u/wujing05)\
**Post date:** [February 8, 2009, 11:41pm UTC](https://forum.kirupa.com/t/auto-resizing-and-centering-content-in-as2/281396/1 "2009-02-08T23:41:02Z")

</div>

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!
