# Scale down a movieclip and takting care of proprotions

**URL:** <https://forum.kirupa.com/t/scale-down-a-movieclip-and-takting-care-of-proprotions/234789>\
**Category:** flash\
**Created:** [August 6, 2007, 7:09am UTC](https://forum.kirupa.com/t/scale-down-a-movieclip-and-takting-care-of-proprotions/234789 "2007-08-06T07:09:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thor918](https://avatars.discourse-cdn.com/v4/letter/t/0ea827/32.png) [@thor918](https://forum.kirupa.com/u/thor918)\
**Post date:** [August 6, 2007, 7:09am UTC](https://forum.kirupa.com/t/scale-down-a-movieclip-and-takting-care-of-proprotions/234789/1 "2007-08-06T07:09:34Z")

</div>

okey title should say: ☹  
“Scale down a movieclip and taking care of proprotions”

Hi there.  
do anyone have a nice code that will scale down a moviclip  
to no bigger than width=500px and height=400px (proprotions must be taken care of)?

```auto

var heightPercent:Number = this.height / 500;
			var newWidth:Number = this.width / heightPercent;
			this.height = 500;
			this.width = newWidth;

```

:block:
