Better Way to Change Shape

I want to create the effect of a box getting bigger on click and bouncing back on release.

I’ve created it using shape tweens, but it looks pixelated and blurry. Is there a better way to create this using AS? Is there a better way to make the movement look more fluid, or bouncy using AS?

hmm… I dont know… Your problem is with the actual vectors kinda being pixelly…

this is kinda a strech (quite stupid too) but an idea nevertheless. You could make a line of dots out of a movieClip that has a small 1x1 box. Then using AS you can change their motion up and down. Would still be a little pixelly though…

Hmm… or you can cheat and use images =D.

sorry,
Aditya

goes through tonnes of fla’s

Ok, this is it (it can be much more beautiful(sp?), but it works ;)):

 onClipEvent(load){
this.onPress = function(){
	this.sizer = 300;
}
this.onRelease = function(){
	this.sizer = 100;
};
this.sizer = 100;
_parent.stop();

this.onEnterFrame = function(){
	factor =  (factor + (this.sizer - this._xscale)/15)*.9; /* adjust the 15 and .9 to your liking */
	this._xscale = this._yscale += factor;
}
}

It’s in MX format though. God, I love MX. Be sure your ‘button’ is a movieclip, do you can put this on it.

[m]

Thank will work, but I need it to on click grow and bounce back to it’s orginal size, then on release shrink and then go back to regular size.

I’m not too sharp on AS, how can I edit this to do that?

 onClipEvent(load){
this.onPress = function(){
	this._xscale = this._yscale  = 300;
}
this.onRelease = function(){
	this._xscale = this._yscale = 33;
};
this.sizer = 100;
_parent.stop();

this.onEnterFrame = function(){
	factor =  (factor + (100 - this._xscale)/15)*.9; /* adjust the 15 and .9 to your liking */
	this._xscale = this._yscale += factor;
}
}


Something like this?

first I very much appreciate your help.

second, almost. It is growing on click then shirnking back to orig size, but the it doesn’t really grow to the bigger size, it more of jumps then shrinks.

Does that make sense?

I want the elasticity to grow then shrink to original size, then on release elastically shrink then return to orig size.

Thanks again.

That growing, do you mean with springing or without a ‘spring’,ie gradually growing?

The growing should have some spring but not such a severe jump to full size.