Change speed and length of path of motion

How can I change the speed and length of path of a vertically moving object by user input values in Flash 8?