Javascript easing (like claudio's scroller)

i know this is the wrong program, but does anyone know the javascript that i could use in director mx 2004 to make a sprite ease when moving left or right? it will be moving by button(sprite) press not by key press