var inputNum:Number = Number(myInputText.text);
// user input invalid number!
// do math as usual, ex:
inputNum * 2;
You will probably want to set the input text restrict to just numbers, and dot if you want decimals.
If you want to parse out a full expression from input text, that's a much trickier subject.