Inertia rollover

Can someone help me out with this rollover.

My button rolls on to the stage with a superkool inertia effect. I would like to be able to rollover the button and have it move about 10 or 20 pixels to the right, with the same inertia effect. If you can help me out, the link to my fla is below.


does anyone get this?

Remove the actions from your clip (all of them).

Add these actions to the frame where your stop() action is…

//function for elastic effect (written by Senocular)
MovieClip.prototype.elasticMove = function(targt, accel, friction) {
this.speed += (targt-this._x)*accel;
this.speed *= friction;
this._x += this.speed;
//first move it to original position
buttonone.onEnterFrame = function() {
this.elasticMove(10, .5, .7);
//onRollOver move it 20 px to the right (10+20 = 30)
buttonone.onRollOver = function() {
this.onEnterFrame = function() {
this.elasticMove(30, .5, .7);
//onRollOut move it back to the original position
buttonone.onRollOut = function() {
this.onEnterFrame = function() {
this.elasticMove(10, .5, .7);