Create a button that slides up

how do i create a button that when i hover over it it slides up and when i roll out it goes back down
But i want to do this in action script
I don’t want to do tween or motion frames
The graphics are jpg but the movement in AS

Michael