# Resizing without distorting

**URL:** <https://forum.kirupa.com/t/resizing-without-distorting/250564>\
**Category:** Uncategorized\
**Created:** [January 30, 2008, 4:16pm UTC](https://forum.kirupa.com/t/resizing-without-distorting/250564 "2008-01-30T16:16:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![p\_ziity](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@p\_ziity](https://forum.kirupa.com/u/p_ziity)\
**Post date:** [January 30, 2008, 4:16pm UTC](https://forum.kirupa.com/t/resizing-without-distorting/250564/1 "2008-01-30T16:16:02Z")

</div>

:evil:  
Hi people of the internet,

I’m using the following script to adjust a video\_container’s size when the browser is stretched. What I need to know is if there is a way to enlarge and shrink it while at the same time keeping it’s shape proportionate to the video?

```auto
var stageResizeListener:Object = new Object();
stageResizeListener.onResize = function() {

    presentation.video_container._width = Stage.width;
    presentation.video_container._height = Stage.height;
};
Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.addListener(stageResizeListener);
Stage.addListener(sizeListener);

```
