hmm..i dun know if this is the right board to post cos my question is very simple..
i am creating a maths quiz...
There are 2 input text fields..The instance names of 2 input text fields are inputField and inputField02.
There is one dynamic text field to display the result....The instance name of dynamic text field is resultField.
Code:
var a: Number;
var b: Number;
a=inputField.text;
b=inputField02.text;
answer_btn.onRelease = function() {
resultField.text = a/b;
}
however when i press on answer button, the result displayed is NaN.
What's wrong with the code?