# Centering and resizing content using AS

**URL:** <https://forum.kirupa.com/t/centering-and-resizing-content-using-as/282995>\
**Category:** Uncategorized\
**Created:** [March 1, 2009, 4:26am UTC](https://forum.kirupa.com/t/centering-and-resizing-content-using-as/282995 "2009-03-01T04:26:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chockybickyman](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@chockybickyman](https://forum.kirupa.com/u/chockybickyman)\
**Post date:** [March 1, 2009, 4:26am UTC](https://forum.kirupa.com/t/centering-and-resizing-content-using-as/282995/1 "2009-03-01T04:26:56Z")

</div>

[http://www.kirupa.com/developer/as3/resizing\_centering\_as3.htm](http://www.kirupa.com/developer/as3/resizing_centering_as3.htm)

I was looking at this tutorial, this is exactly what I am trying to do with my website, but this is AS3, is there a way to change the code so it will function exactly the same but with AS2 code instead.

I have already contstructed my site with AS2, which then wont allow this code to work, Is there even a way I can have an AS3 index file that loads the movies with the AS2 and applies the same resizing to the movies that have been loaded.

Any help would be great
