Adobe Animate Math
Good evenening everybody.
I would like to create myself a few interactive HTML5 files with Javascript containing simple math.
I have a very simple problem, I would ask your for this. In this code, I have 3 text boxes, 2 of them are inputs and 1 is the output. By entering numbers in the input boxes, the output simply adds their sum, when clicking the button I referred to.
The text input boxes are from Adobe Animate>Window>Components>TextInput
The code looks as:
this.stop();
var a = document.getElementById("atext"); //atext refers to TexInput box instance name
var b = document.getElementById("btext"); //bext refers to TextInput box instance name
this.start.addEventListener("click", fl_MouseClickHandler.bind(this)); //start refers to the start button
function fl_MouseClickHandler() {
var c = a + b;
this.ctext.text = c; //prints out the output sum value in third text box
}
Near as I can tell, the issue is with the text/number inputs.
Any ideas how to fix this ?