# Elastic all sides

**URL:** <https://forum.kirupa.com/t/elastic-all-sides/178333>\
**Category:** Uncategorized\
**Created:** [February 9, 2006, 4:10pm UTC](https://forum.kirupa.com/t/elastic-all-sides/178333 "2006-02-09T16:10:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![friggingmick](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@friggingmick](https://forum.kirupa.com/u/friggingmick)\
**Post date:** [February 9, 2006, 4:10pm UTC](https://forum.kirupa.com/t/elastic-all-sides/178333/1 "2006-02-09T16:10:21Z")

</div>

Just played around with tween classes first time and cannot find a way to make text or shape to “elastic” from all sides of object instead of “elastic” object to down and right:

```auto

import mx.transitions.Tween;
import mx.transitions.easing.*;

function elastic() {
	var boxTween:Tween = new Tween(this,"_xscale",Elastic.easeOut,100,125,1,true);	
	var boxTween:Tween = new Tween(this,"_yscale",Elastic.easeOut,100,125,1,true);	
}
 function unslastic() {
	var boxTween:Tween = new Tween(this,"_xscale",Elastic.easeOut,125,100,1,true);	
	var boxTween:Tween = new Tween(this,"_yscale",Elastic.easeOut,125,100,1,true);	
}

box.onRollOver = this.elastic;

box.onRollOut = this.unslastic;

```

Thanx,

Jace
