I have a serie of movie clip parts from a menu. Each movie clip has an elastic effect on rollover with the following code.
it is ok but not smooth enough I wonder how I could smooth the effect. Is there a function for this ?
[SIZE=1]monClip.onRollOver = function() {
this.onEnterFrame = function() {
if (this._xscale >= 150) {
this._xscale = this._yscale = 150;
delete this.onEnterFrame;
};
this._xscale +=10;
this._yscale +=10;
};
};
monClip.onRollOut = function() {
this.onEnterFrame = function() {
if (this._xscale <= 150) {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
};
this._xscale -=10;
this._yscale -=10;
};
};[/SIZE]
[SIZE=1][/SIZE]