# I want to resize an MC to a certain width and height

**URL:** <https://forum.kirupa.com/t/i-want-to-resize-an-mc-to-a-certain-width-and-height/141828>\
**Category:** Uncategorized\
**Created:** [March 23, 2005, 2:45pm UTC](https://forum.kirupa.com/t/i-want-to-resize-an-mc-to-a-certain-width-and-height/141828 "2005-03-23T14:45:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrace](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Post date:** [March 23, 2005, 2:45pm UTC](https://forum.kirupa.com/t/i-want-to-resize-an-mc-to-a-certain-width-and-height/141828/1 "2005-03-23T14:45:31Z")

</div>

I just want to use this easing function thing to make a MC change it’s width and height, but how.

It doesn’t seem to want to work. It doesn’t set the MC to the exact dimensions that I want.

onClipEvent (load) {  
var easing = 9;  
var wide = this.\_width;  
var hite = this.\_height  
var xFinal = this.\_x;  
var yFinal = this.\_y;  
var xScaleFinal = this.\_xscale;  
var yScaleFinal = this.\_yscale;  
var alf = this.\_alpha;  
}  
onClipEvent (enterFrame) {  
this.\_x += (xFinal-this.\_x)/easing;  
this.\_y += (yFinal-this.\_y)/easing;  
this.\_width += (wide-this.\_width)/easing;  
this.\_height += (hite-this.\_height)/easing;

this.\_xscale += (xScaleFinal-this.\_xscale)/easing;  
this.\_yscale += (yScaleFinal-this.\_yscale)/easing;  
this.\_alpha += (alf-this.\_alpha)/easing;  
}

WHats going on with this thing???
