# Kirupa.com - Flash/ActionScript: Auto-Resizing and Centering your Content

**URL:** <https://forum.kirupa.com/t/kirupa-com-flash-actionscript-auto-resizing-and-centering-your-content/352411>\
**Category:** programming\
**Created:** [November 23, 2014, 6:40am UTC](https://forum.kirupa.com/t/kirupa-com-flash-actionscript-auto-resizing-and-centering-your-content/352411 "2014-11-23T06:40:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [November 23, 2014, 6:40am UTC](https://forum.kirupa.com/t/kirupa-com-flash-actionscript-auto-resizing-and-centering-your-content/352411/1 "2014-11-23T06:40:33Z")

</div>

By default, the content you create in Flash is set to appear at a fixed width. Fortunately, you have the ability to override that default, and with some ActionScript, be able to have your content take advantage of available space. For an example of what I am referring to, click on the below image to launch a new window:

* * *
This is a companion discussion topic for the original entry at [http://www.kirupa.com/developer/as3/resizing\_centering\_as3.htm](http://www.kirupa.com/developer/as3/resizing_centering_as3.htm)
