maybe try getting the text from the actual textField

var input = Number(myInputBox.text);

also, trace out some variables, in the calcnum function:

calculatenum.onRelease = function() {

trace(input+" "+calc)
}

if anything is undefined then tell us what.