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:
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