# Change width & height

**URL:** <https://forum.kirupa.com/t/change-width-height/10949>\
**Category:** flash\
**Created:** [January 9, 2003, 6:54pm UTC](https://forum.kirupa.com/t/change-width-height/10949 "2003-01-09T18:54:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorseye](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thorseye/32/66_2.png) [@thorseye](https://forum.kirupa.com/u/thorseye)\
**Post date:** [January 9, 2003, 6:54pm UTC](https://forum.kirupa.com/t/change-width-height/10949/1 "2003-01-09T18:54:36Z")

</div>

I’ve got a mc which I’ve put this code onto:

```auto

onClipEvent(enterFrame) {
	var acceleration = 0.8;
	nuw = this._width;
	nuh = this._height;
	if (this._width < 50 && this._height < 80) {
		nuw = this._width;
		nuh = this._height;
		
		this._width = nuw + (3 * acceleration);
		this._height = nuh + (4 * acceleration);
		}
	}

```

This makes the mc bigger. How should I do to make it shrink back to normal size again??
