# Prototype scale problem

**URL:** <https://forum.kirupa.com/t/prototype-scale-problem/74647>\
**Category:** flash\
**Created:** [December 31, 2004, 11:36am UTC](https://forum.kirupa.com/t/prototype-scale-problem/74647 "2004-12-31T11:36:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konijn](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@Konijn](https://forum.kirupa.com/u/Konijn)\
**Post date:** [December 31, 2004, 11:36am UTC](https://forum.kirupa.com/t/prototype-scale-problem/74647/1 "2004-12-31T11:36:14Z")

</div>

Hey,

I created a prototype that scales an mc.  
You can see it work at my own site: [http://www.freshface.be/](http://www.freshface.be/)

But at the end of the scaling it jumps to to end of the size, it is not fluent anymore.

How does this come?

My proto:

```php
MovieClip.prototype.scaleIt = function(vG, vGFaktor) {
	this._xscale = this._xscale+(vG-this._xscale)/vGFaktor;
	this._yscale = this._xscale;
	if (Math.abs(this._xscale-vG)<1) {
		this._yscale = this._xscale=vG;
		delete this.onEnterFrame;
	}
}

```
