I have a simple bit of Actionscript (2), that is causing me grief.

I have a textbox that I get the value from - myAge.

It deals as expected, except when I want to add 10 to the variable. This is all happening in a dynamic text box.

var realAge:Number = Number(myAge) + 10;
background = "The age " + myName + " entered was " + myAge + ". However, after performing some initial background" + newline + " checks, we believe that " + myName + " is actually " + realAge + ".";
realAge is displaying as NaN. The myAge variable works OK in the output "string".

I'm sure it's a noob error, but I haven't been able to crack it.
Appreciate any advice.