Really simple math equation won't work

I just completed an Advanced Actionscript course and I’ve been doing some simple tutes from “Foundation ActionScript for Flash MX 2004” for practice, though the course was in version 8.

Everything’s been fine until I tried a simple math problem and for some reason none of the operators are working. I’ve been looking at these six lines of code since yesterday and I can’t get this to work nohow.

the movie is two text boxes and a button. The first text box is an Input text box set to var inputNum, and the second is a dynamic text box set to var outputNum. The button instance is named enter_btn. Here’s the code I’ve got

var inputNum:Number;
var outputNum:Number;

enter_btn.onPress = function(){
outputNum = inputNum * 2;
};

No matter what I’ve tried, the * operator won’t work, neither will any other math operators. If I take out the operator and just write outputNum = inputNum, it works fine.

this is such a simple prob I’m feeling a little deranged, but that could just be the heat.

Gerry