as3

hello
i need help
im currently doing a project of a lift stimulation.
How do i convert the size of the stage to shorter number(the lift level number)
eg:
If the user were to enter lift and enter level 3 it will go up to a specific measurement of the stage height
but i can only enter the height of the stage size instead eg 345 to 400( huge number) on to the input textbox