# Elasticity Tween Edit - from move to scale

**URL:** <https://forum.kirupa.com/t/elasticity-tween-edit-from-move-to-scale/202887>\
**Category:** Uncategorized\
**Created:** [October 5, 2006, 4:12pm UTC](https://forum.kirupa.com/t/elasticity-tween-edit-from-move-to-scale/202887 "2006-10-05T16:12:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmart](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@cmart](https://forum.kirupa.com/u/cmart)\
**Post date:** [October 5, 2006, 4:12pm UTC](https://forum.kirupa.com/t/elasticity-tween-edit-from-move-to-scale/202887/1 "2006-10-05T16:12:05Z")

</div>

Hi everyone I’m looking to create a scaleTo Tween with elasticity from the following moveit Tween code.

This is the original AS:

```auto

MovieClip.prototype.moveit = function (centerx, centery, inertia, k) { 
	vx = -this._x+centerx;
	vy = -this._y+centery;
	this.xp = this.xp*inertia+vx*k;
	this.yp = this.yp*inertia+vy*k;
	this._x += this.xp;
	this._y += this.yp;
}

```

Called like so:

```auto

onClipEvent (enterFrame) {
	this.moveit(11, 28, .75, 0.1);
}
onClipEvent(load) {
	var xp = 0;
	var yp = 0;
}

```

How do I make this safe for pixel fonts? in other words no blurring during the tween?
