# Rescale mc

**URL:** <https://forum.kirupa.com/t/rescale-mc/186966>\
**Category:** Uncategorized\
**Created:** [April 25, 2006, 5:21pm UTC](https://forum.kirupa.com/t/rescale-mc/186966 "2006-04-25T17:21:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modulater](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@modulater](https://forum.kirupa.com/u/modulater)\
**Post date:** [April 25, 2006, 5:21pm UTC](https://forum.kirupa.com/t/rescale-mc/186966/1 "2006-04-25T17:21:28Z")

</div>

Hi there,

I’m trying out some resize stuff. So far I seemed to manige to ajust size off an mc when the size off the stage changes.Now I noticed when only the width or height changes of the stage it only rescales it’s hieght or width. How can i make them scale both when only the hiegt or width changes off the stage. This is the code I’m using wright now:

if(Stage.width\<=815 ){  
container.\_xscale = 65;  
container.\_yscale = 65;  
}  
else{  
container.\_xscale = Stage.width \*.081  
container.\_yscale = Stage.height \*.12  
}

Big thx in advance!
