# Scaling mc

**URL:** https://forum.kirupa.com/t/scaling-mc/195699
**Category:** Uncategorized
**Created:** [August 2, 2006, 2:52pm UTC](https://forum.kirupa.com/t/scaling-mc/195699 "2006-08-02T14:52:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fried](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@fried](https://forum.kirupa.com/u/fried)
#### Post date: [August 2, 2006, 2:52pm UTC](https://forum.kirupa.com/t/scaling-mc/195699/1 "2006-08-02T14:52:29Z")

</div>

Hello Everyone,

I have a mc on stage with an instance name of slide\_mc. It must scale and stop when it has reached a certain width. It scales but it does not want to stop. Here is my code:

```auto
var my_x = 60;
slide_mc._x = 13;
slide_mc._width = 1;

slide_mc.onEnterFrame = function(){
	slide_mc._xscale += my_x
	if(slide_mc._width == my_x){
		delete this.onEnterFrame
	}
}

```
