
Код:
//грузим transitions fx
import mx.transitions.Tween;
import mx.transitions.Easing.*;
count=0;
mc.onRelease=setscale();
//при нажатии проверяем счетчик count, если 0 то увеличиваем
//если count не равен 0, то уменьшаем.
function setscale() {
if (count=0){
count++;
twnx = new Tween(this,"_xscale",Strong.easeOut,this._xscale,100,2,true);
twny = new Tween(this,"_yscale",Strong.easeOut,this._yscale,100,2,true);
}
if (count!=0){
count=0;
twnx = new Tween(this,"_xscale",Strong.easeOut,this._xscale,50,2,true);
twny = new Tween(this,"_yscale",Strong.easeOut,this._yscale,50,2,true);
}
}
пробую этот код, но ничего не выходит :\