Adding elasticity to my scrolling function

Hi,

i’ve got a cool scrolling function, that i often (always ;-)) use
( because it’s a simple and easy to adapting to Y, X, scale…) :
*
[COLOR=Red]function scrolling(nom, coord, coef) {
nom.onEnterFrame = function() {
this._x += (coord-this._x)*coef;
if (this._x == coord) {
delete this.onEnterFrame;
}
};
}[/COLOR]

*I want to add to this function an elastic effect…but as i’m not a head in physic, maybe someone can help me ?

thanks !
stef