Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Rodie1952

macrumors newbie
Original poster
I am a relative newcomer to Actionscript 2.0 and Flash I have created a Input test box where a student can input the answer to a mathematical equation i.e. 1+1= Input Text Box variable. The problem is when I check the correct answer to the Input Number Flash treats in Input as text not a numerical value. How do I get the input to be treated as numerical?
 
Both of the solutions *should* work for As2. The bottom method (casting) also works for As3.

myNum=parseInt(myString);

myNum=Number(myString);
 
"should" was the key word.

Sorry, that didn't work. I should add this is inside a movieclip if that makes any difference.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.