Flash 8 Input Boxes

How can I change the speed of a moving car based on values input by user? Also, how can I make Flash calculate values of a function based on those input values?